Translate Events From LRM To LRM (Roads and Highways)

许可等级:BasicStandardAdvanced

摘要

Translates the measures (m-values) of events from one LRM (Linear Referencing Method) to another. The output is a new event layer feature class.

This tool is helpful in bringing together event data provided by various business units that may use different LRMs. The LRMs may differ as they may have different Route IDs and m-values.

用法

语法

TranslateEventsFromLRMToLRM_roads (in_source_event_layer, in_event_table_properties, in_target_network, in_route_id_field, in_concurrent_route_matching, out_target_event_layer)
参数说明数据类型
in_source_event_layer

The source event layer to be translated.

Feature Layer
in_event_table_properties

Parameter consisting of the route identifier field, the geometry type, and the measures in the input event table.

  • Route Identifier Field—The field in the source event table that contains the Route IDs for each event.
  • Event Type—The source event type (LINE/POINT).

    LINE—Uses both from- and to-measure values to describe a portion of a route.

    POINT—Uses only a single measure value to describe a discrete location. Only a From Measure field must be specified for point events.

  • From-Measure Field—A field containing From Measure values for the line events. When the Event Type is point, the label for this parameter becomes Measure field.
  • To-Measure Field—A field containing To Measure values for the line events.
Route Measure Event Properties
in_target_network

The route network to which the source events will be translated.

Feature Layer
in_route_id_field

The field in the target network layer that contains the unique Route IDs for each route.

String
in_concurrent_route_matching

The method to determine which route to translate the event onto when concurrent routes exist in the target network. This selected method is only applied when the location of the event translation in the target network has concurrent routes.

  • ANYThe source event is translated against the first of the concurrent routes at that location in the target network.
  • ROUTE_IDThe RouteID of source event is compared against the RouteIDs of the concurrent routes at that location in the target network to find a single matching route to translate against. The RouteIDs of the source event and target network must be an exact match for this method to correctly translate the event.
  • ALLThe source event is translated against all the concurrent routes at that location in the target network.
String
out_target_event_layer

The translated event to be created.

Feature Layer

代码实例

TranslateEventsFromLRMToLRM example 1 (Python window)

Demonstrates how to use the TranslateEventFromLRMToLRM tool.

#tool variables
in_source_event_layer="Pavement Type"
in_event_table_properties="ROUTE_ID LINE FROM_MEASURE TO_MEASURE"
in_target_network="MileMarker"
in_route_id_field="CustomRouteField"
out_target_event_layer="Pavement_Type_MileMarker"

# set current workspace
arcpy.env.workspace="C:/Data/NY_Data.gdb"

# execute the tool
arcpy.TranslateEventsFromLRMToLRM_roads("Pavement Type", "ROUTE_ID LINE FROM_MEASURE TO_MEASURE", "MileMarker","CustomRouteField", "Pavment_Type_MileMarker")
TranslateEventsFromLRMToLRM example 2 (Stand-alone Python script)

Translates a line event In_Access_Control from one LRM to another.

# Name: TranslateEventsFromLRMtoLRM.py
# Description: Translate Event from one LRM to another LRM. 
# Requires: Esri Roads and Highways Solution

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")

# Local variables:
event = "C:/Data/NY_Data.gdb/LRSE_Pavement_Type"
network = "C:/Data/NY_Data.gdb/LRSN_MileMarker"
out_event = "C:/Data/NY_Data.gdb/Pavement_Type_MMarker"
event_Table_Properties = "ROUTE_ID LINE FROM_MEASURE TO_MEASURE"

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(event, "event_lyr")
arcpy.MakeFeatureLayer_management(network, "network_lyr")

# Process: Translate Events From LRM To LRM
arcpy.TranslateEventsFromLRMToLRM_roads("event_lyr", event_Table_Properties, "network_lyr", "Route_ID", out_event)

环境

相关主题

许可信息

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