Remeasure

Remeasures the routes using calibration based on end-point measures contained in From and To fields.

Usage Tips

The Input Feature Class can be a geodatabase, shapefile, or coverage.

The Output Feature Class can only be a shapefile, not a geodatabase or coverage.

Therefore, if the Input Feature Class is a geodatabase or coverage, then an Output Feature Class (shapefile) must be specified, otherwise the tool will abort.

The Input Feature Class must already have measures.

Command line syntax

Remeasure <Input_Feature_Class> {Output_Feature_Class} <From_Field> <To_Field>

Parameters

Expression Explanation
<Input_Feature_Class>

The input feature class.

The Input Feature Class can be a geodatabase, shapefile, or coverage.

The Input Feature Class must already have measures.

{Output_Feature_Class}

The output features class.

The Output Feature Class can only be a shapefile, not a geodatabase or coverage.

If no Output Feature Class is specified, then the Input Feature Class is used for output.

If the Input Feature Class is a geodatabase or coverage, then an Output Feature Class (shapefile) must be specified, otherwise the tool will abort.

If an Output Feature Class is specified it must not already exist.

The measure of each vertex along each feature in the Output Feature Class is recalculated using end-point calibration. The measure of the first point in each feature is set equal to the value of the From Field of that feature. Likewise the measure of the last point in each feature is set equal to the value of the To Field of that feature. The measures of the intervening points are calculated by interpolating between the values of the From Field and the To Field, proportionate to the actual distance of the vertex along the feature.

The tool handles features made up of single parts or multiple parts. In the case of features made up of multiple parts, there is no gap in the new measures between parts. In other words, the measure assigned to the last vertex in one part is also assigned to the first vertex of the next part.

<From_Field>

The field in the Input Feature Class that contains the value to be assigned to the beginning measure of each feature.

<To_Field>

The field in the Input Feature Class that contains the value to be assigned to the ending measure of each feature.

Command Line Example

workspace c:/docume~1/dchatfie/mydocu~1/linear~1
Set c:/docume~1/dchatfie/mydocu~1/linear~1 into workspace

Remeasure roads.shp # fmeas tmeas
Executing (Remeasure_1): Remeasure "C:\Documents and Settings\dchatfie\My Documents\linear_referencing\roads.shp" # fmeas tmeas
Start Time: Tue Apr 18 18:08:48 2006
Running script Remeasure...
Completed script Remeasure...
Executed (Remeasure_1) successfully.
End Time: Tue Apr 18 18:08:53 2006 (Elapsed Time: 5.00 secs)

Scripting syntax

Remeasure (Input_Feature_Class, Output_Feature_Class, From_Field, To_Field)

Parameters

Expression Explanation
Input Feature Class (Required)

The input feature class.

The Input Feature Class can be a geodatabase, shapefile, or coverage.

The Input Feature Class must already have measures.

Output Feature Class (Optional)

The output features class.

The Output Feature Class can only be a shapefile, not a geodatabase or coverage.

If no Output Feature Class is specified, then the Input Feature Class is used for output.

If the Input Feature Class is a geodatabase or coverage, then an Output Feature Class (shapefile) must be specified, otherwise the tool will abort.

If an Output Feature Class is specified it must not already exist.

The measure of each vertex along each feature in the Output Feature Class is recalculated using end-point calibration. The measure of the first point in each feature is set equal to the value of the From Field of that feature. Likewise the measure of the last point in each feature is set equal to the value of the To Field of that feature. The measures of the intervening points are calculated by interpolating between the values of the From Field and the To Field, proportionate to the actual distance of the vertex along the feature.

The tool handles features made up of single parts or multiple parts. In the case of features made up of multiple parts, there is no gap in the new measures between parts. In other words, the measure assigned to the last vertex in one part is also assigned to the first vertex of the next part.

From Field (Required)

The field in the Input Feature Class that contains the value to be assigned to the beginning measure of each feature.

To Field (Required)

The field in the Input Feature Class that contains the value to be assigned to the ending measure of each feature.

Script Example

# Import modules.
import sys, string, os, win32com.client

# Create the Geoprocessor object
gp = win32com.client.Dispatch('esriGeoprocessing.GpDispatch.1')

# Load required toolboxes...
gp.AddToolbox('C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx')

# Load DV Linear Referencing toolbox.
gp.AddToolbox('C:/Documents and Settings/dchatfie/Application Data/ESRI/ArcToolbox/My Toolboxes/' + \
                         'DV Linear Referencing Tools.tbx')

# Set workspace.
gp.workspace = 'c:/documents and settings/dchatfie/my documents/linear_referencing'

# Run remeasure script.
gp.remeasure('roads.shp', '#', 'fmeas', 'tmeas')