ArcObjects Library Reference (GeoDatabase)  

IGeometricNetwork.AddJunctionWithSubsumption Method

Add a new junction feature to the network by replacing existing junction.

[Visual Basic .NET]
Public Sub AddJunctionWithSubsumption ( _
    ByVal Junction As ISimpleJunctionFeature, _
    ByVal junctionEID As Integer, _
    ByVal subsumedJunction As ISimpleJunctionFeature _
)
[C#]
public void AddJunctionWithSubsumption (
    ISimpleJunctionFeature Junction,
    int junctionEID,
    ISimpleJunctionFeature subsumedJunction
);
[C++]
HRESULT AddJunctionWithSubsumption(
  ISimpleJunctionFeature* Junction,
  long junctionEID,
  ISimpleJunctionFeature* subsumedJunction
);
[C++]

Parameters

Junction [in]

  Junction is a parameter of type ISimpleJunctionFeature

junctionEID [in]   junctionEID is a parameter of type long subsumedJunction [in]

  subsumedJunction is a parameter of type ISimpleJunctionFeature

Product Availability

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

Description

The pJunction argument represents the junction which will subsume or replace the existing junction.  The JunctionEID represents the Element ID of the junction feature specified in the first argument and can be obtained from SimpleJunctionFeature::EID property.  The third argument, pSusbsumedJunction represents the junction being subsumed.

AddJunctionWithSubsumption will enforce network connectivity between the newly created feature and any network features which are geometrically coincident.

Errors Returned

Specifying the subsuming junction as an orphan junction feature will always raise the error "Cannot add an orphan junction on top of an existing junction".  Orphan junctions cannot subsume other orphan junctions or standard junctions.

See Also

IGeometricNetwork Interface | IWorkspaceEdit Interface | ISpatialCacheManager Interface | IWorkspaceEditEvents Interface | IFeatureClass.CreateFeature Method | Editor Class