Update Intersection Points (Roads and Highways)

许可等级:BasicStandardAdvanced

摘要

Helps generate and update LRS intersection point features.

用法

语法

UpdateIntersectionPoints_roads (in_intersection_layer, {in_start_time})
参数说明数据类型
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

代码实例

UpdateIntersectionPoints example 1 (Python window)

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})
UpdateIntersectionPoints example 2 (stand-alone script)

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 )

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Roads and Highways
ArcGIS for Desktop Standard: 需要 Roads and Highways
ArcGIS for Desktop Advanced: 需要 Roads and Highways
4/27/2014