This document is archived and information here might be outdated. Recommended version. |
Provides access to properties of the feature locator agent. Note: the INALocatorFeatureAgent interface has been superseded by INALocatorFeatureAgent2. Please consider using the more recent version.
Name | 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. |
Classes | Description |
---|---|
NALocatorFeatureAgent | Finds network feature locations for analysis. |
INALocatorFeatureAgent has been superseded by INALocatorFeatureAgent2.
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;
}
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