OnMeasurementQueryResult

This event occurs when the results are returned for an information query about any point or object in the 3D World.

 

JavaScript

 

OnMeasurementQueryResult(

       queryResult,

       ObjectID)

 

C#

 

bool OnMeasurementQueryResult (

       string queryResult,

       string ObjectID)

 

C++

 

HRESULT OnMeasurementQueryResult (

       [in] BSTR queryResult,

       [in] BSTR ObjectID,

       [out, retval] VARIANT_BOOL* pbHandled))

Parameters

queryResult

An XML containing the information query result. E.g.,

<?xml version='1.0' encoding='ISO-8859-1'?><Root><General><p var="Longitude">-109.461035</p><p var="Latitude">40.694764</p><p var="MGRS">12TXL3002606012</p><p var="Altitude">2721.85 Meters </p></General></Root>

Example XML for an Object Query

<?xml version='1.0' encoding='ISO-8859-1'?><Root><General><p var="Description">New Polygon ##20008342</p><p var="Type">Polygon</p><p var="Pivot Longitude">-102.242197</p><p var="Pivot Latitude">40.892605</p><p var="Pivot MGRS">13TGF3232430497</p><p var="Pivot Altitude">1146.66 Meters  (0.00 Meters AGL)</p>

<p var="Perimeter">908.98 Km</p>

<p var="Area" tooltip="Area of the horizontal projection">51339.77 Square km</p></General></Root>

ObjectID

The ID of the object that was queried. If no object was queried, an empty string is returned.

Return Value

pbHandled

A Boolean that indicates whether or not the client handled the information query result itself and does not wish TerraExplorer to respond. When the value is FALSE, TerraExplorer handles the mouse action.