[Geoserver-users] Envelope function not working in YSLD

Hi,

I would like to ask You if You have used the envelope function in YSLD on GeoServer. My YSLD code:

<i>- line:
    uom: metre
    geometry: ${envelope(geometry)}</i>

wont’t validate with error:
java.lang.IllegalArgumentException: Invalid cql expression ‘envelope(geometry)’

Similar functions: convexHull, boundary or even octagonalenvelope working correct in YLSD.

I’ve already asked about it at: https://gis.stackexchange.com/questions/362402/geoserver-envelope-function-not-working-in-ysld
and want to confirm this issue before posting a ticket for it.
Envelope function works perfect in pure SLD.

Best Regards
Daniel Hawryluk

At that point it is a straight ECQL expression (anything between ${ … }).

It looks like from the docs that envelope is a custom type that expects a different format: ENVELOPE ( x1 x2 y1 y2 )

So this extension provided by ECQL is masking a function envelope of the same name!

···


Jody Garnett