[OpenLayers-Users] the WMSGetFeatureInfo control,
exceptions & infoFormats
Bart van den Eijnden
bartvde at osgis.nl
Wed Dec 21 11:37:47 EST 2011
Hi Andrew,
the control just uses the EXCEPTIONS parameter value as specified on the WMS Layer. So you can control it that way.
infoFormat can also be specified on a WMS layer: parameter name is INFO_FORMAT
wrt the type value, e.g. ArcGIS Server returns an XML structure that does not allow us to determine from which layer a feature came when requesting GetFeatureInfo for multiple layers from an ArcGIS service. Not much we can do about this. I've reported this to ESRI in the past.
Best regards,
Bart
--
Bart van den Eijnden
OSGIS - http://osgis.nl
On Dec 21, 2011, at 5:25 PM, Andrew Bailey wrote:
> WMSGetFeatureInfo control & Exceptions.
>
> If I use a Control.Click to build some GetFeatureInfo requests I can
> define an Exceptions parameter as part of the request. I've noticed that
> if I'm using the WMSGetFeatureInfo control then there is Exceptions
> parameter to define. I'm wondering if this is something that's missing
> from the control or it's handled deep within the library. Or as a
> developer is it something to be worried about.
>
> infoFormats.
>
> To place this in context: I'm working on an OL application with a
> collection of WMS layers of interest on top of some national base
> mapping. We're dealing with probably about 40-50 WMS publishers who use
> a good healthy mix of supported infoFormats :-/
>
> We wish to implement an Info tool for all visible layers. The
> WMSGetFeatureInfo control is rather attractive for us as it allows a
> drillDown but I'm wondering if a more resilient approach would be to
> capture the infoFormats when we do our initial getCapabilities (as part
> of the GeoExt tree panel) and then build separate GetFeatureInfo
> requests for each layer. That way we would at least be able to identify
> which features come from which WMS layer. I've noticed that with the
> drillDown/WMSGetFeatureInfo approach not all features are returning with
> a type value. If two separate WMS layers are defined from the same WMS
> then i can't distinguish between the two.
>
> Your thoughts/code would be appreciated on either matter!
> Andy
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111221/4311f395/attachment-0001.html
More information about the Users
mailing list