|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRouteMeasureCalibrator
Provides access to route measure calibration methods.
The IRouteMeasureCalibrator interface is used to calibrate routes at a feature class level.
Routes can be calibrated by two methods:
An updateHow parameter is passed into the methods to specify whether calibration is to be done on the entire route or on portions of the route. Here are some examples of upDateHow:
Interpolate = 1
Extrapolate Before = 2
Extrapolate After = 4
A boolean parameter allRoutes is passed into the methods to specify whether all routes are be be included into the output, even the ones which are not calibrated due to no calibration points on the route.
For disjoint routes, gaps can be ignored or not ignored by setting the boolean parameter ignoreGaps to True or False. For CalibrateRoutesByMs, this property is always True.
See IRouteMeasureCalibrator2.
The results of CalibrateRoutesByDistance and CalibrateRoutesByMs is an IEnumBSTR, which is a container for the list of errors encountered during route calibration.
Method Summary | |
---|---|
IEnumBSTR |
calibrateRoutesByDistance(int updateHow,
boolean ignoreGaps,
double tolerance,
boolean allRoutes,
IFeatureClassName outputFClassName,
IGeometryDef outputGeometryDef,
String configKeyword,
ITrackCancel trackCancel)
Calibrate route features. |
IEnumBSTR |
calibrateRoutesByMs(int updateHow,
double tolerance,
boolean allRoutes,
IFeatureClassName outputFClassName,
IGeometryDef outputGeometryDef,
String configKeyword,
ITrackCancel trackCancel)
Calibrate route features by using existing M values for the interpolation. |
IFeatureClass |
getInputFeatureClass()
The input features to locate along the routes. |
ISelectionSet |
getInputFeatureSelection()
A selection set of features to locate. |
String |
getInputMeasureFieldName()
The input measure field name. |
String |
getInputRouteIDFieldName()
The input route identifier field name. |
IRouteLocator |
getRouteLocator()
The route locator. |
boolean |
isBuildOutputIndex()
Indicates whether an index is going to be built on the route id field on the output result. |
void |
setBuildOutputIndex(boolean status)
Indicates whether an index is going to be built on the route id field on the output result. |
void |
setInputFeatureClassByRef(IFeatureClass inputFeatureClass)
The input features to locate along the routes. |
void |
setInputFeatureSelectionByRef(ISelectionSet selection)
A selection set of features to locate. |
void |
setInputMeasureFieldName(String fieldName)
The input measure field name. |
void |
setInputRouteIDFieldName(String fieldName)
The input route identifier field name. |
void |
setRouteLocatorByRef(IRouteLocator routeLocator)
The route locator. |
Method Detail |
---|
void setRouteLocatorByRef(IRouteLocator routeLocator) throws IOException, AutomationException
routeLocator
- A reference to a com.esri.arcgis.location.IRouteLocator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRouteLocator getRouteLocator() throws IOException, AutomationException
Use the IRouteMeasureCalibrator2::RouteFeatureClass (or RouteFeatureSelection) and IRouteMeasureCalibrator2::RouteIDFieldName properties instead.
The RouteLocator property sets the route locator which contains information about the route feature class, such as the route identifier, spatial reference, etc.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInputFeatureClassByRef(IFeatureClass inputFeatureClass) throws IOException, AutomationException
inputFeatureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFeatureClass getInputFeatureClass() throws IOException, AutomationException
The InputFeatureClass is used to set the feature class, IFeatureClass, which contains the calibration points. The geometry type of the InputFeatureClass must of type Point or Multipoint.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInputFeatureSelectionByRef(ISelectionSet selection) throws IOException, AutomationException
selection
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISelectionSet getInputFeatureSelection() throws IOException, AutomationException
The InputFeatureSelection is used to specify a selection set, ISelectionSet, for the calibration points. If this property and the InputFeatureClass property is set, the InputFeatureSelection is used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInputRouteIDFieldName(String fieldName) throws IOException, AutomationException
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getInputRouteIDFieldName() throws IOException, AutomationException
The InputRouteIDFieldName property sets the route identifier for the point feature class, specifying which route each calibration point refers to.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInputMeasureFieldName(String fieldName) throws IOException, AutomationException
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getInputMeasureFieldName() throws IOException, AutomationException
The InputMeasureFieldName property sets the field in the point feature class which is used to set the measure value of the route at the point.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBuildOutputIndex(boolean status) throws IOException, AutomationException
status
- The status (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isBuildOutputIndex() throws IOException, AutomationException
The BuildOutputIndex property can be used to create an index on the route identifier of the output feature class.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR calibrateRoutesByDistance(int updateHow, boolean ignoreGaps, double tolerance, boolean allRoutes, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, String configKeyword, ITrackCancel trackCancel) throws IOException, AutomationException
The outputFClassName parameter in this method is the IFeatureClassName, from which the properties of the output feature class can be set.
The outputGeometryDef parameter sets the IGeometryDef for the output feature class. The geometry definition of the output feature class must have HasMs = True, and should have an adequate M extent (MDomain) so the new measures can be set.
updateHow
- The updateHow (in)ignoreGaps
- The ignoreGaps (in)tolerance
- The tolerance (in)allRoutes
- The allRoutes (in)outputFClassName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)outputGeometryDef
- A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)configKeyword
- The configKeyword (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR calibrateRoutesByMs(int updateHow, double tolerance, boolean allRoutes, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, String configKeyword, ITrackCancel trackCancel) throws IOException, AutomationException
The outputFClassName parameter in this method is the IFeatureClassName , from which the properties of the output feature class can be set.
The outputGeometryDef parameter sets the IGeometryDef for the output feature class. The geometry definition of the output feature class must have HasMs = True, and should have an adequate M extent (MDomain) so the new measures can be set.
If there are disjoint routes, gaps will be ignored.
updateHow
- The updateHow (in)tolerance
- The tolerance (in)allRoutes
- The allRoutes (in)outputFClassName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)outputGeometryDef
- A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)configKeyword
- The configKeyword (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |