[Geoserver-users] WMS OGC-filter fails with “I dont understand the tag: gml:Polygon”

On Mon, Apr 29, 2013 at 12:04 PM, Rahkonen Jukka <jukka.rahkonen@anonymised.com<mailto:jukka.rahkonen@anonymised.com>> wrote:
Hi,

I believe that using &FILTER= is only supported in WFS. With WMS you should flip the OGC filter inside SLD.

Ah, that might be it. Do I need to store that SLD in geoserver or can I send that along with the request?

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

I tried with CQL filters first, but they seem to only be about boolean expressions, in the sense that either a geometry doesn't match or when it matches the whole geometry will be rendered.
I need something more like a spatial version of the set operation intersection. That is I want the parts of the geometries that are outside of my bounding polygon to be cut away.
Does this make sense? I think my bad painting linked above helps with understanding what I'm after.