Calculate LRS Measure From XY Fields

Title Calculate LRS Measure From XY Fields

Summary

Determines the measure of a point defined by XY field values and a route identifier from a set of route features, and stores the measure in the specified measure field.


Usage

  • If the input rows are from a tableview or layer having a selection set, only the selected rows will be used.

  • If the route features are from a layer having a selection set, only the selected features will be used.


Syntax

Calculate_LRS_Measure_From_XY_Fields (input_features, input_features_routeid_field, input_features_xcoordinate_field, input_features_ycoordinate_field, input_features_from_measure_field, input_measure_scale, input_route_features, input_route_features_routeid_field)

Parameter Explanation Data Type
input_features Dialog Reference

The input rows from a table, tableview, feature class , or layer whose measure field will be updated based on attributes stored in a route identifier and XY fields.

Table View
input_features_routeid_field Dialog Reference

The field in the input tableview describing which route the point event is along.

This must be a string field.

Field
input_features_xcoordinate_field Dialog Reference

The field in the input tableview describing the x-coordinate of the point to be located.

This must be an integer, single, or double field.

Field
input_features_ycoordinate_field Dialog Reference

The field in the input tableview describing the y-coordinate of the point to be located.

This must be an integer, single, or double field.

Field
input_features_from_measure_field Dialog Reference

The field in the input table which will be updated with the measure value.

This must be a double field.

Field
input_measure_scale Dialog Reference

The number of decimals that the measures are rounded to before writing them to the measure field.

Long
input_route_features Dialog Reference

The route features from a feature class or layer from which the point will obtain its measure.

Feature Layer
input_route_features_routeid_field Dialog Reference

The field in the route feature class containing values that uniquely describe each route.

Field

Code Samples

Tags

Credits

Use limitations