
http://pneumatictu.be/WMSQuery.cs
This plugin lets you query a WMS server for feature information. To use it, select a wms-based layer from the treeview and right click on the map. The response from the server will appear in the web browser. If you select a non-wms item then the right-click will do nothing. A small red square will appear on the map where your click landed.
Not every server supports all three response format options, so if you get an error (or a blank web browser panel) then try a different format. I think the XML choice should always show you something, even if it is just empty tags or an error.
Every server varies in how it handles the precision of the request, so you may get more than one feature returned (the maximum is set to 10 features). If you are trying to query point data and are getting no features returned then zoom closer and try again.
Issues:
*There is no way to detect whether there was a double-click, so turn off the query checkbox before using a double right-click to zoom out.
*1.4.0.1 has the new raytracing code to make click locations accurate on the globe but 1.4 doesn't, so in 1.4 set the terrain exaggeration to zero to make sure your click lands where you think it will.
*WW will be unresponsive while the query is download. I can do the download asynchronously, but then there are errors when opening the browser panel from the other thread. So that is on the to-do list.

Thanks to geodan and Servir-Viz for the original code.

Comment