Hello ,
We noticed a problem with an ogc:filter getMap request. ( GeoServer 2.24.2 )
It is only if you have a Within Filter without another extra filter option.
So what is wrong:
FILTER=
<ogc:Filter xmlns:gml=http://www.opengis.net/gml xmlns:ogc=http://www.opengis.net/ogc>ogc:Withinogc:PropertyNamegeom</ogc:PropertyName><gml:Polygon srsName=http://www.opengis.net/def/crs/EPSG/0/28992>gml:exteriorgml:LinearRinggml:posList154852 464024 155048 463679 155303 463736 155082 464086 154852 464024</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Within></ogc:Filter>
This url gives an error in geoserver ( Rendering process failed. Layers: geonovation:energielabels_amersfoort → Caused by: java.lang.NullPointerException at org.geotools.filter.spatial.ReprojectingFilterVisitor$GeometryFilterTransformer.transform(ReprojectingFilterVisitor.java:437)
But when I have the following URL, with added on ogc:And and a random extra filter ( in this case 0>=0), then it is working OK!
Filter=
<ogc:Filter xmlns:gml=http://www.opengis.net/gml xmlns:ogc=http://www.opengis.net/ogc>ogc:Andogc:Withinogc:PropertyNamegeom</ogc:PropertyName>gml:Polygongml:exteriorgml:LinearRinggml:posList154852.87672948933 464024.4568953283 155048.54203767146 463679.5184417369 155303.4218767874 463736.1500901585 155082.0111295965 464086.23693005764 154852.87672948933 464024.4568953283</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Within>ogc:PropertyIsGreaterThanOrEqualToogc:Literal0</ogc:Literal>ogc:Literal0</ogc:Literal></ogc:PropertyIsGreaterThanOrEqualTo></ogc:And></ogc:Filter>
What could be the problem here?
Peter-Paul Koonings
GeoNovation B.V.