[Geoserver-devel] [JIRA] (GEOS-9640) Function PointN doesn't work in YSLD

Harry Haroldinio created an issue

GeoServer / BugGEOS-9640

Function PointN doesn’t work in YSLD

Issue Type:

BugBug

Affects Versions:

2.16.2, 2.16.3, 2.17.1

Assignee:

Unassigned

Components:

YSLD

Created:

04/Jun/20 9:38 AM

Priority:

HighHigh

Reporter:

Harry Haroldinio

YSLD example below doesn’t display any label like the pointN function doesn’t return any value:

name: style
feature-styles:
- name: style
  rules:
  - name: style
    symbolizers:
    - text:
        uom: metre
        geometry: ${pointN(geometry,1)}
        label: ${geometryType(geometry)}
        placement: point
        fill-color: '#000088'
        font-family: Tahoma
        font-size: 0.5

Change the geometry and label part to display geometry type also won’t display any label:

geometry: ${geometry}
label: ${toWKT(pointN(geometry,1))}

But changing label to

${getX(pointN(geometry,1))}

will display always 0.0 regardless of number of point we enter:

geometry: ${geometry}
label: ${getX(pointN(geometry,1))}

Issue reported also by me at: https://gis.stackexchange.com/questions/363382/geoserver-function-pointn-doesnt-work-in-ysld

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#100128-sha1:e736ab1)

Atlassian logo