Hello everyone,

In version 2.24.2 I have a problem with filter in GetLegendGraphic request. 

If I request a legend with geometry in it I get an error:

Request:

https://tutorials.kaartviewer.nl/geoserver/amstelveen/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Kunstwerken&legend_options=countMatched:true;hideEmptyRules:true;forceLabels:on&FILTER=<ogc:Filter
 xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc";><ogc:Intersects><ogc:PropertyName>geom</ogc:PropertyName><gml:Polygon
 
srsName="http://www.opengis.net/gml/srs/epsg.xml%2328992";><gml:exterior><gml:LinearRing><gml:posList>113857
 477288 115624 478326 115965 476979 115197 476268 113857 
477288</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter>

Error:

<ServiceExceptionReport version="1.3.0" 
xsi:schemaLocation="http://www.opengis.net/ogc 
https://tutorials.kaartviewer.nl/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd";>
<ServiceException code="internalError">
Rendering process failed. Layers: Kunstwerken
</ServiceException>
</ServiceExceptionReport>

If I request a legend with property is equal to I get a good response.

https://tutorials.kaartviewer.nl/geoserver/amstelveen/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Kunstwerken&legend_options=countMatched:true;hideEmptyRules:true;forceLabels:on&FILTER=<ogc:Filter
 xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc";><ogc:PropertyIsEqualTo><ogc:PropertyName>BOUWMATERIAAL</ogc:PropertyName><ogc:Literal>Metselwerk</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>

It worked before this version. Am I doing something wrong or is there an issue 
with geometry filter in the legend url?

Kind regards,

Mike Voermans
Software Engineer
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to