Update Intersection Points (Roads and Highways)
Summary
Helps generate and update LRS intersection point features.
Usage
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.
- When conflict prevention is enabled, then
If a message appears that is related to acquiring locks, the need to reconcile, or not being able to acquire locks, and so on, then Roads and Highways conflict prevention is enabled. For more information about these messages, see Conflict prevention in Roads and Highways for Desktop.
- If conflict prevention has been enabled and an intersecting polygon feature such as a county boundary has been edited, you will be prompted to acquire locks for all the routes that intersect the polygon's boundary.
- If you are working in the lock root version, then all the locks acquired by the tool to update the intersections will be released automatically.
- If you are working in a child version, then all the locks acquired by the tool to update the intersections will remain.
Syntax
Parameter | Explanation | Data Type |
in_intersection_layer |
The LRS intersection feature class that needs to be updated. | Feature Layer |
in_start_time (Optional) |
The intersections will be updated from this time to present. | Date |
Code Sample
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 )