Provides access to members that return information about simple junction features.
Product Availability
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
Description | ||
---|---|---|
EdgeFeature | The EdgeFeature associated with the specified index value. | |
EdgeFeatureCount | The number of EdgeFeatures associated with this junction. | |
EID | The logical network element ID of this junction. |
CoClasses that implement ISimpleJunctionFeature
CoClasses and 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.
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