1

I am beginner in MapServer and Openlayers.

I want to be able to select features and show their attributes by user click. I don't need to edit any feature.

I know this is possible with WFS, but don't know about WMS.

is this possible with WMS?

What are your suggestions?

3
  • It is possible. Read about GetFeatureInfo from mapserver.org/ogc/wms_server.html. Configuring is a little bit tricky with Mapserver but you should be able to make is by reading the document. It would be better to learn WMS and WFS with anything else than OpenLayers, like browser or QGIS.
    – user30184
    Commented Oct 20, 2014 at 14:00
  • thank you. i want to learn all of them and start learning of all. but now i have a project and should concentrate on necessary skills. now, what's your suggestion between WMS and WFS for my needs? what is faster?
    – ahmad
    Commented Oct 20, 2014 at 14:28
  • I don't know. Speed error is not meaningful, if system has been set up right both are fast. This is GetFeatureInfo demo.opengeo.org/geoserver/… and this is GetFeature demo.opengeo.org/geoserver/…
    – user30184
    Commented Oct 20, 2014 at 14:58

1 Answer 1

1

This is a feature of the Web Map Service (WMS) interface standard through the use of a GetFeatureInfo request. In your web server software, you need to make the layer queryable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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