Calculate LRS Measure Fields

Title Calculate LRS Measure Fields

Summary

Calculates the values for from- and to-measure fields based on the input feature geometry. When the input geometries support measures, they can be optionally updated to update the measure component for each shape vertex.


Usage

  • If the input features are from a layer having a selection set, only the selected features 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_Fields (input_features, input_features_routeid_field, input_features_from_measure_field, {input_features_to_measure_field}, input_measure_scale, input_route_features, input_route_features_routeid_field, input_update_shape)

Parameter Explanation Data Type
input_features Dialog Reference

The point, polyline, or polygon feature class or layer containing the measure fields to be updated.

Feature Layer
input_features_routeid_field Dialog Reference

The field containing values indicating which route the events are along.

This must be a string field.

Field
input_features_from_measure_field Dialog Reference

The field to be updated with the measure value. This is done as follows:

  • Points - the measure of the point,

  • Lines - the measure corresponding to the lines from-point,

  • Polygons - the miminum measure corresponding to the vertices of the polygon boundary.

This must be a double field.

Field
input_features_to_measure_field (Optional) Dialog Reference

The field to be updated with the measure value. This doesn't apply to point features and is done as follows for polylines and polygons:

  • Lines - the measure corresponding to the lines to-point,

  • Polygons - the maximum measure corresponding to the vertices of the polygon boundary.

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 fields.

Long
input_route_features Dialog Reference

The routes from which the input features will retrieve their measure values.

Feature Layer
input_route_features_routeid_field Dialog Reference

The field containing values that uniquely identify each route.

This must be a string field.

Field
input_update_shape Dialog Reference

If the input feature geometries support measures, the m-values of the vertices can be updated to reflect their measure along the route.

  • Place a check in the checkbox to update the geometry m-values.


Python Reference

If the input feature geometries support measures, the m-values of the vertices can be updated to reflect their measure along the route.

  • UPDATE_VERTICES - The geometry m-values will be updated.

  • NO_UPDATE_VERTICES - The geometries will not be updated. This is the default.

Boolean

Code Samples

Tags

Credits

Use limitations