Hi all
I have two layers that I query together via WMS, and I'd like to order
features between them as in the "z-ordering across layers" example in
the doc.
I style the layers in YSLD.
In my first style, i have a bunch of FeatureTypeStyles, and only the
last one has a "x-sortBy" property.
In my second style, all FeatureTypeStyles have a "x-sortBy" property and
a "x-sortByGroup" property.
The problem is that as soon as I add the "x-sortByGroup" property in the
first layer's style, WMS rendering breaks with this stack trace :
java.lang.NullPointerException
at
org.geotools.renderer.lite.ZGroupLayerFactory.ensureSortProperties(ZGroupLayerFactory.java:175)
at
org.geotools.renderer.lite.ZGroupLayerFactory.buildNewFeatureLayer(ZGroupLayerFactory.java:159)
at
org.geotools.renderer.lite.ZGroupLayerFactory.addToSplitLayers(ZGroupLayerFactory.java:144)
at
org.geotools.renderer.lite.ZGroupLayerFactory.arrangeOnZGroups(ZGroupLayerFactory.java:121)
at
org.geotools.renderer.lite.ZGroupLayerFactory.filter(ZGroupLayerFactory.java:85)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:803)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:569)
[...]
(I don't know if further trace is relevant, I think the problem is in
ens ensureSortProperties)
What's wrong with this style ?
PS : how come I can't find any YSLD example anymore ? The YSLD reference
does not mention the vendor options like x-sortBy anymore, is this
format being abandonned ?
Thanks a lot !
Best regards
--
Arnaud
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users