Returns a Globe Server Identify Result object at the given location.
[Visual Basic 6.0] Function Identify(
ByVal LayerID As Long, _
ByVal oid As Long, _
ByVal searchShape As IGeometry _
) As IGlobeServerIdentifyResults
[Visual Basic .NET] Public Function Identify ( _ ByVal LayerID As Integer, _ ByVal oid As Integer, _ ByVal searchShape As IGeometry _ ) As IGlobeServerIdentifyResults
[C#] public IGlobeServerIdentifyResults Identify ( int LayerID, int oid, IGeometry searchShape );
[Java] public IGlobeServeridentifyResults identify ( int LayerID, int oid, IGeometry searchShape ) throws IOException, AutomationException
[C++] HRESULT Identify( long LayerID, long oid, IGeometry* searchShape, IGlobeServerIdentifyResults** identifyResults );
Parameters
LayerID [in]
LayerID is a parameter of type long
oid [in]
oid is a parameter of type long
searchShape [in]
searchShape is a parameter of type IGeometry
identifyResults [out, retval]
identifyResults is a parameter of type IGlobeServerIdentifyResults
Returns GlobeServerIdentifyResults object by taking in the LayerId to be identified, an Object ID and the geometry of the identify area, delineated by the geometry object. Note, a value of -1 should be passed as the OID value to return all objects found within the identify area.
{
....
IEnvelope penvelop=pglobeLayerinfo.Extent.Envelope;
//simply takes the layer extent as the envelope....pSearchShape = pglobeLayerinfo.Extent.Envelope;
IGlobeServerIdentifyResults pglobeServIdResults=
new GlobeServerIdentifyResultsClass();IGlobeServerFindResults pglobeserverFindRes=
new GlobeServerFindResultClass();pglobeServIdResults = (IGlobeServerIdentifyResults) pglobeServer.Identify(layerID,-1,pSearchShape);
}