[Geoserver-users] fetching a wms map of an area with a road layer as base and specific POI's overlayed on it ?


Hi,


How can I fetch a wms map of an area with two layers, a road layer as base map and specific point of interest (POI’s) overlayed on it. The poi’s fid are known. This is the
query I tried but the result returned only 3 poi’s. The road map was not returned.


http://localhost:8080/geoserver/wms?request=GetMap&layers=topp:lagos_roads2,topp:lagos_poi2&styles=simple_roads,mypoi&bbox=3.3210,6.5109,3.3932,6.5426&Format=image/png&width=550&height=250&srs=EPSG:4326&featureid=lagos_poi2.20,lagos_poi2.50,lagos_poi2.60




What i expected as a response was a wms map with the road layer as base and only specified poi’s overlayed on it. When I run the wms query without the featureid condition


http://localhost:8080/geoserver/wms?request=GetMap&layers=topp:lagos_roads2,topp:lagos_poi2&styles=simple_roads,mypoi&bbox=3.3210,6.5109,3.3932,6.5426&Format=image/png&width=550&height=250&srs=EPSG:4326


The query returns all features that fall in that extent from the two layers as expected.


am I missing something here ? How do i specify specific poi’s to be returned ?
Or do I need to specify the coordinates of the POI using geoserver’s an inline feature request ? or do I need to use spatial filters or CQL ?


a sample query will really help.


Thanks,


Roman.