This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGeometricNetwork Interface > IGeometricNetwork.AddJunctionWithSubsumption Method (ArcObjects .NET 10.5 SDK) |
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
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.
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.
IGeometricNetwork Interface | IWorkspaceEdit Interface | IWorkspaceEditEvents Interface | ISpatialCacheManager Interface | IFeatureClass.CreateFeature Method | Editor Class