[OpenLayers-Users] Format WMSGetFeatureInfo response
Robert Sanson
SansonR at asurequality.com
Mon Mar 15 16:02:05 EDT 2010
Hi Piero
The returned data will be in the response.responseText.
You need to parse this text with Javascript to get your values.
eg.
var postcode = "http://ws-esrimt/arcgis/services/mapservice/MapServer/WMSServer?service=WMS&version=1.1.1&request=GetFeatureInfo&QUERY_LAYERS=5&INFO_FORMAT=text/plain&SRS=EPSG:2193&BBOX=" + bbox1 + "," + bbox2 + "," + bbox3 + "," + bbox4 + "&WIDTH=20&HEIGHT=20&X=10&Y=10";
OpenLayers.loadURL(postcode, '', this, setHTML);
function setHTML(response) {
alert(response.responseText);
}
regards,
Robert S
>>> Piero Campa <piero.campa at gmail.com> 16/03/2010 5:08 a.m. >>>
Hi,
I insert myself in the topic for a little question: I can't understand how
to read the content of the HTTP response which contains the WMS feature
info.
Is it a field in the variable controlInfo or whatelse?
Thank you guys. =)
Piero
--
View this message in context: http://n2.nabble.com/Format-WMSGetFeatureInfo-response-tp3196230p4737939.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.
------------------------------------------------------------------
This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100316/0c7e1d26/attachment.html
More information about the Users
mailing list