[OpenLayers-Users] query features based on tabular attributes through WMS?

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Wed Apr 11 14:14:28 EDT 2007


Hi Mike,

you can do this using SLD WMS.

The only thing you need to is set up a Styled Layer Descriptor XML, and 
include in your GetMap url for instance using SLD_BODY (inline) or SLD 
(access using a url). In the XML you also need to define how you want 
your selection to be symbolized.

Best regards,
Bart

Mike Quentel schreef:
> I see there is a GetFeatureInfo in the WMS specification, and it assumes a user clicking a point on the map that then sends an XY to the server.  I've also seen a CIA Factbook example for OL.   Is there any easy way to just query against a tabular attribute, rather than an XY?  Must I use WFS queries to accomplish this?
>
> I noticed the thread at http://www.nabble.com/Zoom-to-feature--tf2203721.html#a6212900
>
> The application I am working on stores GIS data in ArcSDE/Oracle.  ESRI ArcIMS displays WMS map services via its WMS Connector.  What I'd like to be able to do is only display map features that have a table attribute equal to a particular ID.  So in other words, I'd like to query the GIS data for features (individual shapes in a "feature class" vector data table in Oracle) that are equal to this ID, and display them on a map as WMS.  I know how to do this through ESRI software, but I'm not sure how I could do this via OL and WMS.
>
> Any advice about this would be appreciated.
>
> Thanks.
>
> Mike Quentel
>
>
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Users mailing list