Hi,
I believe that using &FILTER= is only supported in WFS. With WMS you should flip the OGC filter inside SLD. If you know that you will use only Geoserver you could have a try with CQL filters http://docs.geoserver.org/stable/en/user/tutorials/cql/cql_tutorial.html
-Jukka Rahkonen-
···
Mattias Bengtsson wrote:
I’m trying to construct an OGC filter to pass to a WMS GetMap request to GeoServer but I can’t seem to do it. The goal is to show the parts of the layer that intersects with a supplied polygon.
Here is an explanatory image: http://moonlite.github.io/files/description.png
When I run the query I don’t get a result but get this in the server logs:
org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: gml:Polygon. HINT: tags are case-sensitive!
Any ideas?
The query:
The filter unescaped:
the_geom
<gml:Polygon srsName=“http://www.opengis.net/gml/srs/epsg.xml#2400”>
1271018,6404272
1271210,6404272
1271210,6404209
1271018,6404272
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
Thanks in advance!
Mattias at Kartena