com.esri.arcgis.networkanalyst
Interface INALocatorAgent2

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

public interface INALocatorAgent2
extends INALocatorAgent, Serializable

Provides access to properties common to all locator agents.

Remarks

The INALocatorAgent2 interface contains methods common to all locator agents. In addition to the methods on INALocatorAgent, INALocatorAgent2 includes a method to get the network location's source feature's geometry.

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.