This document is archived and information here might be outdated.  Recommended version.


INALocatorAgent2.QueryGeometry Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INALocatorAgent2.QueryGeometry Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

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.

See Also

INALocatorAgent2 Interface