This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocatorAgent2 Interface > INALocatorAgent2.QueryGeometry Method (ArcObjects .NET 10.4 SDK) |
The geometry for the given network location.
[Visual Basic .NET] Public Sub QueryGeometry ( _ ByVal Location As INALocation, _ ByRef Geometry As IGeometry _ )
[C#] public void QueryGeometry ( INALocation Location, ref IGeometry Geometry );
[C++]
HRESULT QueryGeometry(
INALocation* Location,
IGeometry** Geometry
);
[C++]
Parameters Location [in]
Location is a parameter of type INALocation Geometry [in, out]
Geometry is a parameter of type IGeometry
QueryGeometry is used to get the source feature geometry of the network location. For example, if a network location is referencing a position along a line feature, the line feature's Polyline geometry will be returned by this method.
The INALocation must already be located, in which case INALocation::IsLocated returns true.
When QueryGeometry is called from a NALocatorFeatureAgent class, the INALocation::SourceID must match the SourceID of the NALocatorFeatureAgent.