Update Intersection Points (Roads and Highways)
摘要
Helps generate and update LRS intersection point features.
用法
Turn on Editor Tracking for the Network and the intersecting layers. This will update the intersections at only the locations where editing (either by attribute or spatially) of the intersecting layers has taken place. Doing so may result in faster performance. For more information on the Editor Tracking tool, see: Enable Editor Tracking.
-
Intersection Layer is a point feature class that stores the LRS intersections data. This feature class gets updated as the result of running this tool.
The intersections are updated from Start Time to present.
The following types of intersection points are not updated using this tool:
- Points that are not part of the intersecting layers
- Points that are added manually to the LRS intersection class
- Points that are copied to the LRS intersection class
- Points that are merged or appended to the LRS intersection class
When intersections are updated, the following occurs:
- If an intersection that once existed no longer exists upon running this tool, that intersection is deleted.
- If the intersection location changed, the shape (point location) for the intersection is updated, maintaining the intersection ID.
- If a feature intersects a route in multiple locations and the intersection locations change, the original intersection ID closest to the new location determines where the intersection is moved to.
语法
参数 | 说明 | 数据类型 |
in_intersection_layer |
The LRS intersection feature class that needs to be updated. | Feature Layer |
in_start_time (可选) |
The intersections will be updated from this time to present. | Date |
代码实例
The following Python window script demonstrates how to use the UpdateIntersectionPoints tool in ArcMap.
# tool variables
in_intersection_layer="route_intersections"
in_start_time="01/01/2012 02:10:32 AM"
# set current workspace
arcpy.env.workspace="C:/data/Outputs.gdb"
# execute the tool
UpdateIntersectionPoints_roads(in_intersection_layer, {in_start_time})
The following Python window script demonstrates how to use the UpdateIntersectionPoints tool in a stand-alone Python script.
# Name: UpdateIntersections_PyWin.py
# Description: Updates LRS intersection points
# Requirements: Esri Roads and Highways solution
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")
# Local variables
# input LRS intersection layer
in_intersection_layer = "C:/RoadsAndHighways/Data/NY_data.gdb/LRSI_Routes_n_Counties"
# time to update the intersections, from to present
in_start_time = "02/01/2013 02:10:32 AM"
# Process: Update Intersection Points
arcpy.UpdateIntersectionPoints_roads(in_intersection_layer, in_start_time )