Class JunctionFeatureSourceClass
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
[Guid("74C871BD-648E-40C0-A46A-E38521216A7B")]
[ClassInterface(ClassInterfaceType.None)]
public class JunctionFeatureSourceClass : JunctionFeatureSource, INetworkSource, IJunctionFeatureSource
- Inheritance
-
JunctionFeatureSourceClass
- Implements
- Inherited Members
Constructors
JunctionFeatureSourceClass()
public JunctionFeatureSourceClass()
Explicit Interface Implementations
AddClassConnectivityGroup(int)
Adds a connectivity group in which this junction feature source participates.
virtual void AddClassConnectivityGroup(int group)
Parameters
groupint
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then use the AddClassConnectivityGroup method to add a new connectivity group to the list of connectivity groups that this JunctionFeatureSource is assigned.
If features are assigned to connectivity group(s) based on their Subtype values, then the AddClassConnectivityGroup method is not used. See the AddSubtypeConnectivityGroup method.
AddSubtypeConnectivityGroup(int, int)
Adds a connectivity group in which the specified subtype of this junction feature source participates.
virtual void AddSubtypeConnectivityGroup(int SubtypeCode, int group)
Parameters
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then the AddSubtypeConnectivityGroup method is not used. See the AddClassConnectivityGroup method.
If features are assigned to connectivity group(s) based on their Subtype values, then use the AddSubtypeConnectivityGroup method to add a new connectivity group to the list of connectivity groups that this JunctionFeatureSource is assigned for the given Subtype value.
ClassConnectivityGroups
Connectivity groups in which this junction feature source participates.
virtual ILongArray ClassConnectivityGroups { get; }
Returns
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then use the ClassConnectivityGroups property to retrieve which connectivity group(s) this JunctionFeatureSource is assigned.
If features are assigned to connectivity group(s) based on their Subtype values, then the ClassConnectivityGroups property is not used. See the SubtypeConnectivityGroups property.
ClassConnectivityPolicy
Policy determining how all junction elements in this source connect to other edge elements.
virtual esriNetworkJunctionConnectivityPolicy ClassConnectivityPolicy { get; set; }
Returns
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then use the ClassConnectivityPolicy property to specify the appropriate junction connectivity policy for the features in this JunctionFeatureSource.
If features are assigned to a connectivity group(s) based on their Subtype values, then the ClassConnectivityPolicy property is not used. See the SubtypeConnectivityPolicy property.
ElementType
Network element type of this network source.
virtual esriNetworkElementType ElementType { get; set; }
Returns
ElevationFieldName
The field name on the feature source to be used as the elevation field when determining connectivity at coincident vertices.
virtual string ElevationFieldName { get; set; }
Returns
GeometryType
The enumerated geometry type.
virtual esriGeometryType GeometryType { get; }
Returns
ID
Unique identifier of this network source.
virtual int ID { get; }
Returns
Remarks
Each source in a Network Dataset is identified by a unique value, the ID property. The ID property can be used to get a reference to the corresponding network source through the INetworkDataset::SourceByID property. This ID is different than the ID value returned by the IObjectClass::ObjectClassID property.
As with ObjectID values, SourceID values are never reused. They are not guaranteed to be sequential, but are guaranteed to be in increasing order based on when the source was added to the network. Unless the source is added or deleted from the DataElement, the SourceID values will remain constant after the INetworkDataset::UpdateSchema method is called.
Name
Name of the class associated with this network source.
virtual string Name { get; set; }
Returns
Remarks
As the network source and its associated feature class (or table) have the same name, it's possible to use this mapping to retrieve the source from any given layer.
// The following code shows how to retrieve a network source based on the feature class name
int layerId = 0;
// Get the feature class associated with the specific layer
IMapServer ms = (MapServer)serverObjectHelper.ServerObject;
IMapServerDataAccess mapServerDataAccess = (IMapServerDataAccess)serverObjectHelper.ServerObject;
IMapServerInfo mapServerInfo = ms.GetServerInfo(ms.DefaultMapName);
IFeatureClass fc = (IFeatureClass)mapServerDataAccess.GetDataSource(ms.DefaultMapName, layerId);
IDataset ds = (IDataset)fc;
// Get the UN domain networks and loop through the network sources to find the one matching the feature class
IDatasetComponent dsComponent = (IDatasetComponent)unDataset;
IDEDataset dataElement = dsComponent.DataElement;
IDEBaseNetwork bnDataElement = (IDEBaseNetwork)dataElement;
IDEUtilityNetwork unDataElement = (IDEUtilityNetwork)bnDataElement;
IArray domainNetworks = unDataElement.DomainNetworks;
INetworkSource ns = null;
for (int i = 0; i < domainNetworks.Count; i++)
{
IDomainNetwork dn = (IDomainNetwork)domainNetworks.Element[i];
IArray networkSources = dn.Sources;
for (int j = 0; j < networkSources.Count; j++)
{
INetworkSource currentNS = (INetworkSource) networkSources.Element[j];
if(currentNS.Name == ds.Name)
{
ns = currentNS;
break;
}
}
if (ns != null)
break;
}
NetworkSourceDirections
The directions settings for this network source.
virtual INetworkSourceDirections NetworkSourceDirections { get; set; }
Returns
Remarks
The NetworkSourceDirections property specifies the information needed to generate driving directions when reporting routes traversing elements from this INetworkSource.
Properties
Property set of this network source.
virtual IPropertySet Properties { get; set; }
Returns
RemoveAllClassConnectivityGroups()
Removes all connectivity groups in which this junction feature source participates.
virtual void RemoveAllClassConnectivityGroups()
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then use the RemoveAllClassConnectivityGroups method to clear out the list of connectivity groups that this JunctionFeatureSource is assigned.
If features are assigned to connectivity group(s) based on their Subtype values, then the RemoveAllClassConnectivityGroups method is not used. See the RemoveAllSubtypeConnectivityGroups method.
RemoveAllSubtypeConnectivityGroups(int)
Removes all connectivity groups in which the specified subtype of this junction feature source participates.
virtual void RemoveAllSubtypeConnectivityGroups(int SubtypeCode)
Parameters
SubtypeCodeint
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then the RemoveAllSubtypeConnectivityGroups method is not used. See the RemoveAllClassConnectivityGroups method.
If features are assigned to connectivity group(s) based on their Subtype values, then use the RemoveAllSubtypeConnectivityGroups method to clear out the list of connectivity groups that this JunctionFeatureSource is assigned for the given Subtype value.
SourceType
Type of network source.
virtual esriNetworkSourceType SourceType { get; }
Returns
SubtypeConnectivityGroups[int]
Connectivity groups in which the specified subtype of this junction feature source participates.
virtual ILongArray SubtypeConnectivityGroups[int SubtypeCode] { get; }
Parameters
SubtypeCodeint
Returns
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then the SubtypeConnectivityGroups property is not used. See the ClassConnectivityGroups property.
If features are assigned to connectivity group(s) based on their Subtype values, then use the SubtypeConnectivityGroups property to retrieve which connectivity group(s) this JunctionFeatureSource is assigned for the given Subtype value.
SubtypeConnectivityPolicy[int]
Policy determining how the junction elements in the specified subtype of this source connect to other edge elements.
virtual esriNetworkJunctionConnectivityPolicy SubtypeConnectivityPolicy[int SubtypeCode] { get; set; }
Parameters
SubtypeCodeint
Returns
Remarks
A JunctionFeatureSource can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then the SubtypeConnectivityPolicy property is not used. See the ClassConnectivityPolicy property.
If features are assigned to a connectivity group(s) based on their Subtype values, then use the SubtypeConnectivityPolicy property to specify the appropriate junction connectivity policy for each Subtype value.
UsesGeometryInConnectivity
Indicates if the source object's geometry is used in determining network connectivity.
virtual bool UsesGeometryInConnectivity { get; set; }
Returns
Remarks
The UsesGeometryInConnectivity property indicates whether the geometries of the features in an INetworkSource are used in determining how its network elements are connected to each other.
For example, the geometries of the features in an EdgeFeatureSource and JunctionFeatureSource are used to determine how the generated edge and junction elements connect to each other. The UsesGeometryInConnectivity property for these sources is True.
In contrast, the geometries of the features in a TurnFeatureSource are not used in deteriming how the turn elements are associated with the edges and junctions of the network -- the fields of the TurnFeatureSource feature class determine this. The UsesGeometryInConnectivity property for the TurnFeatureSource is False.
UsesSubtypes
Indicates if this junction feature source determines connectivity groups and policies by subtypes.
virtual bool UsesSubtypes { get; set; }
Returns
Remarks
A can be assigned to connectivity group(s) in the network dataset in one of two ways:
- All features in the JunctionFeatureSource are assigned to the same connectivity group(s), or
- Features in the JunctionFeatureSource are assigned to connectivity group(s) based on their Subtype values.
If all features are assigned to the same connectivity group(s), then the UsesSubtypes property should be set to False. This means that the ClassConnectivityGroups and ClassConnectivityPolicy settings will apply to this JunctionFeatureSource.
If features are assigned to connectivity group(s) based on their Subtype values, then the UsesSubtypes property should be set to True. This means that the SubtypeConnectivityGroups and SubtypeConnectivityPolicy settings will apply to this JunctionFeatureSource.