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 use GeoServer to display features from a PostGis table the url will look similar to this.

Example URL

Localhost:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap&layers=cite:Layer1, cite:Layer2& styles=&bbox……..width=512,heaight=430&srs=EPSG:4326&application/openlayers

&FILTER= (<Filter xmlns="">
               <FeatureId fid=”Layer1.1234”></FeaturId>
               <FeatureId fid=”Layer1.5678”></FeaturId></Filter>)
            (<Filter xmlns="">
        <FeatureId fid=”Layer2.345”></FeaturId></Filter>)

When I click on a polygon I need to highlight a single polygon if two (or more) polygons overlap i need to be able to step through each polygon in turn showing just it's attributes.

At present I click on a feature and the attributes for the entire layer are shown in my example I use PostGis I've also tried this using a shapefile and the same thing happens.

Any help would gratefully received ThanX Holly

share|improve this question
Check the GeoServer logs to see if there is an error parsing your filter – tomfumb Apr 4 '12 at 21:18
up vote 0 down vote accepted

I think you need to make sure that the filter is attached to the end of the getFeatureInfo request that you are sending.

share|improve this answer
Same issue with no filter just entire layer – Holly Mar 5 '12 at 21:35
did you check in firebug (or in the server log) that the filter is actually attached to the getFeatureInfo request? – iant Mar 7 '12 at 9:16

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.