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


INALocatorAgent.QueryLocationByRow Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INALocatorAgent.QueryLocationByRow Method

Find a network location from a row.

[Visual Basic .NET]
Public Sub QueryLocationByRow ( _
    ByVal row As IRow, _
    ByVal tolerance As Double, _
    ByRef Location As INALocation, _
    ByRef distanceFromPoint As Double _
)
[C#]
public void QueryLocationByRow (
    IRow row,
    double tolerance,
    ref INALocation Location,
    ref double distanceFromPoint
);
[C++]
HRESULT QueryLocationByRow(
  IRow* row,
  double tolerance,
  INALocation** Location,
  double* distanceFromPoint
);
[C++]

Parameters row [in]
row is a parameter of type IRow tolerance [in] tolerance is a parameter of type double Location [in, out]
Location is a parameter of type INALocation distanceFromPoint [in, out] distanceFromPoint is a parameter of type double

Product Availability

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

Remarks

QueryLocationByRow searches for network locations based upon the inbound Row.  The result is returned as an INALocation.

For a NALocatorFeatureAgent, if the row is a feature, QueryLocationByRow uses the feature geometry to populate the INALocation.

For a NALocatorLocationFieldsAgent, QueryLocationByRow uses the field names specified on INALocatorLocationFieldsAgent to populate the INALocation.

 

See Also

INALocatorAgent Interface