Remeasures the routes using calibration based on end-point measures contained in From and To fields.
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.
Remeasure <Input_Feature_Class> {Output_Feature_Class} <From_Field> <To_Field>
Parameters
| Expression | Explanation |
|---|---|
| <Input_Feature_Class> | The input feature class.
|
| {Output_Feature_Class} | The output features class.
|
| <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)
Remeasure (Input_Feature_Class, Output_Feature_Class, From_Field, To_Field)
Parameters
| Expression | Explanation |
|---|---|
| Input Feature Class (Required) | The input feature class.
|
| Output Feature Class (Optional) | The output features class.
|
| 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')