ET GeoWizards Scripting
Calibrate Routes
(Go to the main page of the function)
Adjusts route measures with existing points using measure information stored as attributes in the Point Attribute Table or the M values of pointM dataset.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.CalibrateRoutes(pInputFeatureClass, _
pPointFeatureClass, sOutFileName, sIdFieldName, sPointIdFieldName, _
bM, sMFieldName, sCalibrateMethod, lUpdateMethod, bIgnoreGaps, _
dSearchTol, pOutSRef, sMessage)
The CalibrateRoutes method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | An IFeatureClass object |
| pInputFeatureClass | Required. An IFeatureClass object (Must be a PolylineM feature class) - the routes to be calibrated |
| pPointFeatureClass | Required. An IFeatureClass object (Must be a Point or PointM feature class) - the points with known measures to be used for calibration |
| sOutFileName | Required. A String - the full name of the output feature class (A feature class with the same full name should not exist) |
| sIdFieldName | Required. A String - the name of the route Identifier field in pInputFeatureClass |
| sPointIdFieldName | Required. A String - the name of the route Identifier field in pPointFeatureClass |
| bM | Required. A Boolean - indicating whether the M values of the points will be used (only if pPointFeatureClass is a PointM feature class) |
| sMFieldName | Required. A String - the name of the numeric field in pPointFeatureClass which values will be used for calibrating the routes (ignored if bM = TRUE" |
| sCalibrateMethod | Required. A String - indicating the calibration method to be used. Valid values - "Distance", "Measure" - case sensitive. See the main page of the function for details |
| lUpdateMethod | Required.
A long indicating the interpolation/extrapolation options to be used.
Values: 1 - Interpolate between calibration points 2 - Extrapolate before calibration points 4 - Extrapolate after calibration points Combinations of these values can be used: For example a value of 5 (1 + 4) will indicate Interpolation between points and Extrapolation after calibration points to be used. A value of 7 (1 + 3 + 4) will indicate all methods to be used. See the main page of the function for details |
| bIgnoreGaps | Required. A Boolean - see the main page of the function for details |
| dSearchTol | Required. A Double - only the points that are closer to the route than this tolerance will be used for calibration |
| pOutSRef | Required. An ISpatialReference object - the spatial reference of the output route feature class - must have the same geographic coordinate system as pInFeatureClass |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |