Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.