ArcObjects Library Reference (NetworkAnalyst)  

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