Provides access to members that modify and return information about an edge feature.
| Description | ||
|---|---|---|
![]() |
DisconnectAtEndpoint | Perform the disconnection at either or both of the endpoint. |
![]() |
DisconnectAtJunction | Perform the disconnection at the specified junction. |
![]() |
FromJunctionEID | The junction element EID that corresponds to the from endpoint. |
![]() |
FromJunctionFeature | The junction that corresponds to the from endpoint. |
![]() |
FromToJunctionEIDs | The FROM and TO junction element EIDs (the first is the FROM, the second is the TO). |
![]() |
GeometryForEdgeElement | The geometry corresponding to the element with the given subID. |
![]() |
ToJunctionEID | The junction element EID that corresponds to the to endpoint. |
![]() |
ToJunctionFeature | The junction that corresponds to the to endpoint. |
![]() |
Update | Programmatic update of the NetworkFeature. |
| CoClasses and Classes | Description |
|---|---|
| ComplexEdgeFeature | ESRI Complex edge geometric network feature object. |
| SimpleEdgeFeature | ESRI Geometric network simple edge feature object. |
Use the IEdgeFeature interface to get information about an edge feature as well as to disconnect an edge feature from a geometric network. The IEdgeFeature interface should not be used as a means to traverse the network. IEdgeFeature should only be used to return the connectivity information for features connected to the specific edge feature. Using the IEdgeFeature 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.
The following code example demonstrates how to get the From and To junctions associated with an Edge Feature. It also demonstrates how to find the EID for an edge feature with a supplied point.
Sub GetNetworkFeatureInfo(pFeat As IFeature, pNetwork As INetwork, Optional pPoint As IPoint)
If TypeOf pFeat Is INetworkFeature Then
If pFeat.featureType = esriFTSimpleEdge Or pFeat.featureType = esriFTComplexEdge Then
'Create some variables to use
Dim pEF As IEdgeFeature
Dim pCNF As IComplexNetworkFeature
Dim pFromFeat As IFeature
Dim pToFeat As IFeature
Dim pFromJunc As IJunctionFeature
Dim pToJunc As IJunctionFeature
Set pEF = pFeat
'If either the From or To junction does not have an EID, exit and print a message
If pEF.fromJunctionEID = 0 Then
Debug.Print "From EID is nothing"
Exit Sub
ElseIf pEF.toJunctionEID = 0 Then
Debug.Print "To EID is nothing"
Exit Sub
End If
'Get the From and To junctions for the feature
Set pFromJunc = pEF.FromJunctionFeature
Set pFromFeat = pFromJunc
Set pToJunc = pEF.ToJunctionFeature
Set pToFeat = pToJunc
'Check which type of EF it is and print out some information
If pFeat.featureType = esriFTSimpleEdge Then
Debug.Print "From junction OID: " & pFromFeat.OID & ", From junction EID: " & pEF.fromJunctionEID & vbCrLf & _
"To junction OID: " & pToFeat.OID & ", To Junction EID: " & pEF.toJunctionEID
ElseIf pFeat.featureType = esriFTComplexEdge Then
'If it's a complex edge feature, try to find the EID at the location provided with the supplied point
Set pCNF = pEF
Debug.Print "From junction OID: " & pFromFeat.OID & ", From junction EID: " & pEF.fromJunctionEID & vbCrLf & _
"To junction OID: " & pToFeat.OID & ", To Junction EID: " & pEF.toJunctionEID & vbCrLf & _
"Edge Element Count: " & pCNF.EdgeElementCount & vbCrLf & pCNF.FindEdgeEID(pPoint)
End If
End If
End If
End Sub
INetworkFeature Interface | ISimpleEdgeFeature Interface | IJunctionFeature Interface | IEdgeFeature Interface | INetworkFeatureEvents Interface | IComplexNetworkFeature Interface | IComplexJunctionFeature Interface | IComplexEdgeFeature Interface | INetworkFeature.Connect Method | ISimpleJunctionFeature Interface