Provides access to properties of the feature locator agent. Note: the INALocatorFeatureAgent interface has been superseded byINALocatorFeatureAgent2. Please consider using the more recent version.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.
Members
Description | ||
---|---|---|
SnapType | The method of snapping used. | |
SourceName | The network source name. | |
SubtypeCode | The subtype to be used to locate features. | |
UseSubtype | Indicates if subtypes should be used to locate features. |
CoClasses that implement INALocatorFeatureAgent
CoClasses and Classes | Description |
---|---|
NALocatorFeatureAgent | Finds network feature locations for analysis. |
Remarks
INALocatorFeatureAgent has been superseded by INALocatorFeatureAgent2.
[C#]
public INALocatorAgent CreateLocatorFeatureAgent(INetworkDataset networkDataset,
string sourceName,
esriGeometryHitPartType snapType,
bool useSubtype,
int subtypeCode)
{
INALocatorFeatureAgent naFeatureLocatorAgent = new NALocatorFeatureAgentClass();
INALocatorAgent naLocatorAgent = naFeatureLocatorAgent as INALocatorAgent;
naFeatureLocatorAgent.SnapType = snapType;
naFeatureLocatorAgent.SourceName = sourceName;
naFeatureLocatorAgent.UseSubtype = useSubtype;
naFeatureLocatorAgent.SubtypeCode = subtypeCode;
naLocatorAgent.Bind(networkDataset, null);
return naLocatorAgent;
}
[Visual Basic .NET]
Public Function CreateLocatorFeatureAgent(ByVal networkDataset As INetworkDataset, _
ByVal sourceName As String, _
ByVal snapType As esriGeometryHitPartType, _
ByVal useSubtype As Boolean, _
ByVal subtypeCode As Integer) As INALocatorAgent
Dim naFeatureLocatorAgent As INALocatorFeatureAgent = New NALocatorFeatureAgent()
Dim naLocatorAgent As INALocatorAgent = naFeatureLocatorAgent
naFeatureLocatorAgent.SnapType = snapType
naFeatureLocatorAgent.SourceName = sourceName
naFeatureLocatorAgent.UseSubtype = useSubtype
naFeatureLocatorAgent.SubtypeCode = subtypeCode
naLocatorAgent.Bind(networkDataset, Nothing)
Return naLocatorAgent
End Function