[Geoserver-devel] [JIRA] (GEOS-9662) GeoServer displacement property ignores rotation of point symbolizers mark symbols in YSLD

Harry Haroldinio created an issue

GeoServer / BugGEOS-9662

GeoServer displacement property ignores rotation of point symbolizers mark symbols in YSLD

Issue Type:

BugBug

Affects Versions:

2.16.3, 2.17.1

Assignee:

Unassigned

Attachments:

fig1.jpg, fig2.jpg

Created:

25/Jun/20 10:17 AM

Priority:

MediumMedium

Reporter:

Harry Haroldinio

Displacement property is supported for point symbolizer in YSLD. It’s working well with no rotation. Below example is SVG black simple vertically oriented arrow, green square and red circle. All of them are rotated by 45 degrees (fig1.jpg):

name: style
feature-styles:
- name: style
  rules:
  - name: style
    symbolizers:
    - point:
        uom: metre
        size: 4
        rotation: 45
        displacement: [0,0]
        symbols:
        - external:
           url: "./znaki_poziome/P-8a_2.svg"
           format: image/svg+xml
    - point:
        uom: metre
        size: 1.5
        rotation: 45
        symbols:
        - mark:
           shape: square
           stroke-color: '#3d8035'
           stroke-width: 0.1
    - point:
        uom: metre
        size: 0.25
        rotation: 45
        displacement: [0,0]
        symbols:
        - mark:
           shape: circle
           stroke-color: '#ff0000'
           stroke-width: 0.1

When I change the displacement property to [0,0.5] for arrow and circle, the SVG arrow symbol is displacement correctly but the circle and any other mark symbol will be shifted as if rotation were ignored (fig2.jpg):

name: style
feature-styles:
- name: style
  rules:
  - name: style
    symbolizers:
    - point:
        uom: metre
        size: 4
        rotation: 45
        displacement: [0,0.5]
        symbols:
        - external:
           url: "./znaki_poziome/P-8a_2.svg"
           format: image/svg+xml
    - point:
        uom: metre
        size: 1.5
        rotation: 45
        symbols:
        - mark:
           shape: square
           stroke-color: '#3d8035'
           stroke-width: 0.1
    - point:
        uom: metre
        size: 0.25
        rotation: 45
        displacement: [0,0.5]
        symbols:
        - mark:
           shape: circle
           stroke-color: '#ff0000'
           stroke-width: 0.1

I would like the displacement property to work from mark symbols as for svg symbols, including the rotation of the symbols.
Issue reported also by me at:
https://gis.stackexchange.com/questions/362494/geoserver-displacement-property-shifted-rotation-ignored-position-of-point-sym

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130-sha1:74b7c6b)

Atlassian logo