GetFeatureInfo

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:43, 24 April 2007 (edit)
Withak (Talk | contribs)
(GetFeatureInfo requests in World Wind)
← Previous diff
Revision as of 04:44, 24 April 2007 (edit) (undo)
Withak (Talk | contribs)

Next diff →
Line 10: Line 10:
=Todo= =Todo=
Move this into a separate plugin, keeping the tree view but making space for gui controls to set some of the request options (format, how to display, how many features to return, etc.). Move this into a separate plugin, keeping the tree view but making space for gui controls to set some of the request options (format, how to display, how many features to return, etc.).
 +
 +
 +[[Category:End User Documentation]]
 +[[Category:Data Formats]]

Revision as of 04:44, 24 April 2007

GetFeatureInfo requests in World Wind

As of r3774 the External Layer Manager plugin has a WMS GetFeatureInfo request option added to it. To use, select a layer in the external LM and right click on the globe to submit a feature request for that location. The plugin checks whether the layer has a WMS-based ImageStore before submitting the request.

The GetFeatureInfo request is supposed to include the GetMap request parameters along with the pixel coordinates being queried. Because World Wind doesn't make one GetMap request for a particular view (it makes one for each tile), the GetFeatureInfo request generates a bbox a few hundred pixels square centered on the mouse click, then submits that bbox and the click coordinates relative to that bbox for the GetFeatureInfo request.

There is no parameter in the WMS specification for a tolerance, though some servers apparently allow you to send a "radius=" or "tolerance=" parameter.

The plugin requests the information in "text/plain" right now because not every server has "text/html" as an option. There isn't any way to tell from a World Wind layer what formats the server supports. The response gets saved to a temp file, then the temp file location passed to the browser panel so that the result can be displayed by the brower regardless of the content-type reported by the server. Exceptions are requested in "text/plain" also, but it looks like many servers return errors in xml anyway. Errors are also displayed in the browser panel.

Todo

Move this into a separate plugin, keeping the tree view but making space for gui controls to set some of the request options (format, how to display, how many features to return, etc.).

Personal tools