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


INALocator3.QueryLocationRangesByGeometry Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator3 Interface > INALocator3.QueryLocationRangesByGeometry Method
ArcGIS Developer Help

INALocator3.QueryLocationRangesByGeometry Method

Use the locator agents to find network location ranges from a geometry.

[Visual Basic .NET]
Public Sub QueryLocationRangesByGeometry ( _
    ByVal Geometry As IGeometry, _
    ByRef locationRanges As INALocationRanges _
)
[C#]
public void QueryLocationRangesByGeometry (
    IGeometry Geometry,
    ref INALocationRanges locationRanges
);
[C++]
HRESULT QueryLocationRangesByGeometry(
  IGeometry* Geometry,
  INALocationRanges** locationRanges
);
[C++]
Parameters
Geometry [in]

Geometry is a parameter of type IGeometry* locationRanges [in, out]
locationRanges is a parameter of type INALocationRanges**

Product Availability

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

Remarks

Using the input geometry, this method calls QueryLocationRangesByGeometry on each of its associated NALocatorAgent classes.  Via these associated NALocatorAgent classes, QueryLocationRangesByGeometry determines the set of junctions and edge ranges that intersect the input geometry and returns this information by populating the referenced INALocationRanges parameter.

Generally, the NALocator used for this method should be retrieved from a NAContext.  However, if you do create a NALocator, or have added a new locator agent, then, before querying the NALocator, Bind should be called on the NALocator to set up the locator agents and associate it with the NetworkDataset.

See Also

INALocator3 Interface