|
From: Mike V. <mi...@ge...> - 2024-08-19 13:48:15
|
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 |