[OpenLayers-Users] getfeature info when feature overlay the wms layer

Raffaele Morelli raffaele.morelli at gmail.com
Wed Jul 3 22:08:54 PDT 2013


2013/7/3 Rich Bauer <rdbauer at gmail.com>

> What method are you using to get the feature info? There are several ways.
>
> Here are some examples from the examples site.
> http://openlayers.org/dev/examples/getfeature-wfs.html
>
> http://openlayers.org/dev/examples/getfeatureinfo-control.html
>
> I have really only had luck with the WMSGetFeatureInfo (the second
> example). I can get it in html format only right now, but that might be
> because of the server that I am using, not sure yet. The first one should
> work too but I think I am getting an error that is, again, based on the
> server that I am using.
>
> Rich
>

I've used both, but now I am working with GeoExt.

You can choose WMS feature info response format, default is text/html but
can get gml or plain text (
http://mapserver.org/ogc/wms_server.html#wms-server)

/r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130704/4fe4d3bc/attachment.html>


More information about the Users mailing list