Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

enter image description here

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:

<Filter xmlns:gml="">
        <gml:Polygon srsName="">
share|improve this question

The filter and query look correct.

It appears you've encountered a bug in the QGIS software. I've reproduced this bug on a newer version also, and reported it to QGIS on their issue tracker:; you are welcome to post on that page to confirm you experience the bug as well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.