Function PointN doesn't work in YSLD

Description

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

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

But changing label to

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

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

Best regards

Harry

Environment

Windows 10 Home x64 1909
GeoServer 2.16.3

Activity

Show:
Harry Haroldinio
June 23, 2020, 7:28 AM

YLSD validates with no errors and renders correctly with negative PointN vertex values:

pointN(geometry,-1)

and non integer vertex values:

pointN(geometry,1.1)

String values of vertex validates correctly but won’t render with error: 'expected type int'

pointN(geometry,'test')

Assignee

Unassigned

Reporter

Harry Haroldinio

Fix versions

None

Affects versions

Components

Priority

High
Configure