Resumen
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.
Uso
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.
Sintaxis
arcpy.locref.CreateLRSIntersection(parent_network, network_description_field, intersection_feature_class_name, intersecting_layers, {consider_z}, z_tolerance)
Parámetro | Explicación | Tipo de datos |
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:
| Value Table |
consider_z (Opcional) | Specifies whether z-values will be used when generating intersections.
| Boolean |
z_tolerance | The z-tolerance used to generate intersections. | Double |
Salida derivada
Nombre | Explicación | Tipo de datos |
out_feature_class | The registered output point feature class that will be m- and z-enabled. This feature class will be empty. | Feature Class |
Muestra de código
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")
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')
Entornos
Información de licenciamiento
- Basic: Requiere ArcGIS Location Referencing
- Standard: Requiere ArcGIS Location Referencing
- Advanced: Requiere ArcGIS Location Referencing