Create LRS Intersection (Location Referencing)

Résumé

Creates an intersection feature class for an existing LRS Network.

The output of this tool is an empty feature class with fields that conform to the LRS data model.

Run the Generate Intersections tool to generate intersection points after using this tool.

Utilisation

  • The projected coordinate system of the intersecting feature classes must match that of the Parent LRS Network parameter value.

  • The Parent LRS Network parameter value can be used as an intersecting layer, so the intersections produced will be between the routes in a network.

  • The Parent LRS Network parameter value cannot be a feature service.

  • The intersecting layers must be in the same geodatabase as the Parent LRS Network parameter value.

  • The name of the intersection is created by concatenating the Network Description Field parameter value with the Description Field value in the Intersecting Layers parameter, separated by the Name Separator value in the Intersecting Layers parameter.

  • The Intersecting Layers parameter value must be z-enabled.

Syntaxe

arcpy.locref.CreateLRSIntersection(parent_network, network_description_field, intersection_feature_class_name, intersecting_layers, {consider_z}, z_tolerance)
ParamètreExplicationType de données
parent_network

The network to which the intersection will be registered.

Feature Layer
network_description_field

The field in the network layer that will be used to name the intersections with other intersecting layers.

Field
intersection_feature_class_name

The name of the new intersection point feature class.

String
intersecting_layers
[intersecting_layers,...]

The feature class that intersects the LRS Network and contains the following information:

  • Intersection Layer—The feature class that intersects the LRS Network.
  • ID Field—The field in the intersecting layer used to uniquely identify the feature that intersects the network.
  • Description Field—The field that provides the description, such as town or county name, of the intersecting feature.
  • Name Separator—The name separator for the intersection, such as AND, INTERSECT, +, or |.
Value Table
consider_z
(Facultatif)

Specifies whether z-values will be used when generating intersections.

  • CONSIDER_ZZ-values will be used during generation of intersections.
  • DO_NOT_CONSIDER_ZZ-values will not be used during generation of intersections. This is the default.
Boolean
z_tolerance

The z-tolerance used to generate intersections.

Double

Sortie dérivée

NomExplicationType de données
out_feature_class

The registered output point feature class that will be m- and z-enabled. This feature class will be empty.

Feature Class

Exemple de code

CreateLRSIntersection example 1 (Python window)

The following script demonstrates how to use the CreateLRSIntersection function in the Python window.

# Name: Create_LRS_Intersection_ex1.py
# Description: Create a new LRS Intersection registered to an LRS Network in the Python window.
# Requires: ArcGIS Location Referencing 

# Check out license
arcpy.CheckOutExtension("LocationReferencing")

# Local variables 
parent_network = r"C:\Demo.gdb\LRS\Network1"
network_description_field = "RouteName"
intersection_feature_class_name = "Intersection"
intersecting_layers = "[{Boundary, CountyName, CountyID, & County:}]"

# Set current workspace
arcpy.env.workspace = "C:\Demo.gdb"

# Execute the tool
arcpy.locref.CreateLRSIntersection(parent_network, network_description_field, intersection_feature_class_name, intersecting_layers)

# Check in license
arcpy.CheckInExtension("LocationReferencing")
CreateLRSIntersection example 1 (stand-alone script)

The following script demonstrates how to use the CreateLRSIntersection function in a stand-alone script.

# Name: Create_LRS_Intersection_ex2.py
# Description: Create a new LRS Intersection registered to an LRS Network.
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy 

# Check out license
arcpy.CheckOutExtension("LocationReferencing")

# Local variables 
parent_network = r"C:/Demo.gdb/LRS/NonLineNetwork"
network_description_field = "RouteName"
intersection_feature_class_name = "Intersection"
intersecting_layers = "[{NonLineNetwork, RouteName, RouteName, & RouteName:}]"

# Execute the tool
arcpy.CreateLRSIntersection_locref("parent_network, network_description_field, intersection_feature_class_name, intersection_layers")

# Check in license
arcpy.CheckInExtension('LocationReferencing')

Environnements

Cet outil n'utilise pas d’environnement de géotraitement.

Informations de licence

  • Basic: Requiert ArcGIS Location Referencing
  • Standard: Requiert ArcGIS Location Referencing
  • Advanced: Requiert ArcGIS Location Referencing

Rubriques connexes