This document is archived and information here might be outdated.  Recommended version.


ISimpleJunctionFeature Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISimpleJunctionFeature Interface
ArcGIS Developer Help

ISimpleJunctionFeature Interface

Provides access to members that return information about simple junction features.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

The ISimpleJunctionFeature interface is used to return the element ID of the junction and information about the edges to which it is connected.  The ISimpleJunctionFeature interface should not be used as a means to traverse the network.  It should only be used to return the connectivity information concerning the edge features connected to the junction.  Using the ISimpleJunctionFeature interface to navigate through the network will be extremely slow and cumbersome.  For traverses through the network use the IForwardStar interface on the Network Object Model.

Members

Name Description
Read-only property EdgeFeature The EdgeFeature associated with the specified index value.
Read-only property EdgeFeatureCount The number of EdgeFeatures associated with this junction.
Read-only property EID The logical network element ID of this junction.

Classes that implement ISimpleJunctionFeature

Classes Description
SimpleJunctionFeature Esri Geometric network simple junction feature object.

Remarks

The ISimpleJunctionFeature interface contains three properties for retrieving information about a simple junction. The EdgeFeatureCount property indicates the number of edge features connected to the simple junction, and EdgeFeature property returns the connected edge feature at the specified index. Note that the index for EdgeFeature is zero-based.

[C#]

The following code fragment shows how a client might use this information to display the object IDs of the connected edge features.

// Assume we already have a pointer to a junction feature.
ISimpleJunctionFeature simplejunctionFeature = junctionFeature;
IEdgeFeature edgeFeature;
IRow row;
for(int i = 0; i < simplejunctionFeature.EdgeFeatureCount; i++)
{
edgeFeature = simplejunctionFeature.get_EdgeFeature(i);
row = (IRow)edgeFeature;
Console.WriteLine("EdgeFeature " + i + " has OID of: " + row.OID);
}

See Also

INetworkFeature Interface | IGeometricNetwork Interface | INetwork Interface