Class EdgeFeatureSourceClass
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("F2140D50-6B26-414D-A39F-F35AC54D10DE")]
public class EdgeFeatureSourceClass : EdgeFeatureSource, INetworkSource, IEdgeFeatureSource
- Inheritance
-
EdgeFeatureSourceClass
- Implements
- Inherited Members
Constructors
EdgeFeatureSourceClass()
public EdgeFeatureSourceClass()
Explicit Interface Implementations
ClassConnectivityGroup
Connectivity group in which this edge feature source participates.
virtual int ClassConnectivityGroup { get; set; }
Returns
Remarks
An EdgeFeatureSource can be assigned to a connectivity group in the network dataset in one of two ways:
- All features in the EdgeFeatureSource are assigned to the same connectivity group, or
- Features in the EdgeFeatureSource are assigned to a connectivity group based on their Subtype values.
If all features are assigned to the same connectivity group, then use the ClassConnectivityGroup property to specify the connectivity group that this EdgeFeatureSource is assigned.
If features are assigned to a connectivity group based on their Subtype values, then the ClassConnectivityGroup property is not used. See the SubtypeConnectivityGroup property.
ClassConnectivityPolicy
Policy determining how all edge elements in this source connect to each other.
virtual esriNetworkEdgeConnectivityPolicy ClassConnectivityPolicy { get; set; }
Returns
Remarks
An EdgeFeatureSource can be assigned to a connectivity group in the network dataset in one of two ways:
- All features in the EdgeFeatureSource are assigned to the same connectivity group, or
- Features in the EdgeFeatureSource are assigned to a connectivity group based on their Subtype values.
If all features are assigned to the same connectivity group, then use the ClassConnectivityPolicy property to specify the appropriate edge connectivity policy for the features in this EdgeFeatureSource.
If features are assigned to a connectivity group 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
FromElevationFieldName
The field name on the feature source to be used as the from elevation field when determining connectivity at coincident end vertices.
virtual string FromElevationFieldName { get; set; }
Returns
Remarks
When using elevation field data, both the FromElevationFieldName and ToElevationFieldName must be specified.
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
SourceType
Type of network source.
virtual esriNetworkSourceType SourceType { get; }
Returns
SubtypeConnectivityGroup[int]
Connectivity group in which the specified subtype of this edge feature source participates.
virtual int SubtypeConnectivityGroup[int SubtypeCode] { get; set; }
Parameters
SubtypeCodeint
Returns
Remarks
An EdgeFeatureSource can be assigned to a connectivity group in the network dataset in one of two ways:
- All features in the EdgeFeatureSource are assigned to the same connectivity group, or
- Features in the EdgeFeatureSource are assigned to a connectivity group based on their Subtype values.
If all features are assigned to the same connectivity group, then the SubtypeConnectivityGroup property is not used. See the ClassConnectivityGroup property.
If features are assigned to a connectivity group based on their Subtype values, then each Subtype value can be assigned to a different connectivity group. Use the SubtypeConnectivityGroup property to specify the connectivity group that each Subtype value is assigned.
SubtypeConnectivityPolicy[int]
Policy determining how the edge elements in the specified subtype of this source connect to each other.
virtual esriNetworkEdgeConnectivityPolicy SubtypeConnectivityPolicy[int SubtypeCode] { get; set; }
Parameters
SubtypeCodeint
Returns
Remarks
An EdgeFeatureSource can be assigned to a connectivity group in the network dataset in one of two ways:
- All features in the EdgeFeatureSource are assigned to the same connectivity group, or
- Features in the EdgeFeatureSource are assigned to a connectivity group based on their Subtype values.
If all features are assigned to the same connectivity group, then the SubtypeConnectivityPolicy property is not used. See the ClassConnectivityPolicy property.
If features are assigned to a connectivity group based on their Subtype values, then each Subtype value can be assigned to a different connectivity group. Use the SubtypeConnectivityPolicy property to specify the appropriate edge connectivity policy for each Subtype value.
ToElevationFieldName
The field name on the feature source to be used as the to elevation field when determining connectivity at coincident end vertices.
virtual string ToElevationFieldName { get; set; }
Returns
Remarks
When using elevation field data, both the FromElevationFieldName and ToElevationFieldName must be specified.
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 edge feature source determines connectivity groups and policies by subtypes.
virtual bool UsesSubtypes { get; set; }
Returns
Remarks
An can be assigned to a connectivity group in the network dataset in one of two ways:
- All features in the EdgeFeatureSource are assigned to the same connectivity group, or
- Features in the EdgeFeatureSource are assigned to a connectivity group based on their Subtype values.
If all features are assigned to the same connectivity group, then the UsesSubtypes property should be set to False. This means that the ClassConnectivityGroup and ClassConnectivityPolicy settings will apply to this EdgeFeatureSource.
If features are assigned to a connectivity group based on their Subtype values, then the UsesSubtypes property should be set to True. This means that the SubtypeConnectivityGroup and SubtypeConnectivityPolicy settings will apply to this EdgeFeatureSource.