com.esri.arcgis.networkanalyst
Interface INALocatorAgent2

All Superinterfaces:
INALocatorAgent, Serializable
All Known Subinterfaces:
INALocatorAgent3
All Known Implementing Classes:
NALocatorFeatureAgent, NALocatorLocationFieldsAgent

public interface INALocatorAgent2
extends INALocatorAgent, Serializable

Provides access to properties common to all locator agents.

Remarks

INALocatorAgent2 has been superseded by INALocatorAgent3.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void queryGeometry(INALocation location, IGeometry[] geometry)
          The geometry for the given network location.
 
Methods inherited from interface com.esri.arcgis.networkanalyst.INALocatorAgent
bind, getName, queryLocationByPoint, queryLocationByRow, queryPoint
 

Method Detail

queryGeometry

void queryGeometry(INALocation location,
                   IGeometry[] geometry)
                   throws IOException,
                          AutomationException
The geometry for the given network location.

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
location - A reference to a com.esri.arcgis.networkanalyst.INALocation (in)
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.