ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Add Edge-Junction Connectivity Rule To Geometric Network

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Adds an edge-junction connectivity rule to a geometric network.

Usage

  • The feature classes specified must reside in the geometric network.

  • If the edge or junction feature class has subtypes and connectivity rules for multiple subytpes are required, each rule must be added separately.

  • Default junctions are automatically inserted at the free end point when creating new edge features in a network. Only one default junction is allowed per edge-junction rule.

Syntax

AddEdgeJunctionConnectivityRuleToGeometricNetwork_management (in_geometric_network, in_edge_feature_class, edge_subtype, in_junction_feature_class, junction_subtype, {default_junction}, {edge_min}, {edge_max}, {junction_min}, {junction_max})
ParameterExplanationData Type
in_geometric_network

The geometric network to which the connectivity rule will be added.

Geometric Network
in_edge_feature_class

The name of the edge feature class.

String
edge_subtype

The subtype description for the edge feature class. If subtypes do not exist on the feature class, use the feature class name.

String
in_junction_feature_class

The name of the junction feature class.

String
junction_subtype

The subtype description for the junction feature class. If subtypes do not exist on the feature class, use the feature class name.

String
default_junction
(Optional)

Indicates if the junction specified in this rule will be created automatically at a dangling endpoint of an edge in the feature class specified as part of the rule.

  • DEFAULT —Create a junction at a dangling endpoint of edges for this rule.
  • NO_ DEFAULT —Do not create a junction at a dangling endpoint of edges for this rule. This is the default.
Boolean
edge_min
(Optional)

The minimum number of edges that can connect to each junction. If nothing is specified, then it will be valid to have any number of edges connected to a single junction for the feature class or subtype pair.

Long
edge_max
(Optional)

The maximum number of edges that can connect to each junction. If nothing is specified, then it will be valid to have any number of edges connected to a single junction for the feature class or subtype pair.

Long
junction_min
(Optional)

The minimum number of junctions that can connect to each edge. If nothing is specified, then it will be valid to have any number of junctions connected to a single edge for the feature class or subtype pair.

Long
junction_max
(Optional)

The maximum number of junctions that can connect to each edge. If nothing is specified, then it will be valid to have any number of junctions connected to a single edge for the feature class or subtype pair.

Long

Code sample

AddEdgeJunctionConnectivityRuleToGeometricNetwork example (stand-alone script)

The following stand-alone Python script demonstrates how to use the AddEdgeJunctionConnectivityRuleToGeometricNetwork in Python script to add an edge-junction connectivity rule with cardinality to a geometric network.

# Import arcpy module
import arcpy

# Local variables:
Water_Net = "C:\\testing\\GeometricNetworks\\Montgomery.gdb\\Water\\Water_Net"

# Process: Add Edge-Junction Connectivity Rule To Geometric Network
arcpy.AddEdgeJunctionConnectivityRuleToGeometricNetwork_management(Water_Net, "Distribmains", "Distribmains", "Fittings", "Tap", "DEFAULT", "0", "2", "0", "2")

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geometric Network toolset
  • About geometric network connectivity rules

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal