0

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="http://www.opengis.net/ogc">
               <FeatureId fid=”Layer1.1234”></FeaturId>
               <FeatureId fid=”Layer1.5678”></FeaturId></Filter>)
            (<Filter xmlns="http://www.opengis.net/ogc">
        <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

  • Check the GeoServer logs to see if there is an error parsing your filter – tomfumb Apr 4 '12 at 21:18
0

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

  • 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? – Ian Turton Mar 7 '12 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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