|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRouteMeasureCreator
Provides access to the route creation properties and methods.
The IRouteMeasureCreator interface allows you to create route features at a feature class level.
Routes can be created from a line feature class in three different ways depending on how the measures are to be set.
The InputFeatureClass property is used to set the line feature class the routes are to be created from. The InputRouteIDFieldName property is used to specify the field name from the input feature class from which lines will be aggregated to compose a route.
If not all of the line features are desired for route creation, the InputFeatureSelection property can be used to specify an ISelectionSet.
See IRouteMeasureCreator2.
All of the three methods above require you to pass in an IGeometryDef for the output or resultant feature class. The output GeometryDef must have HasM set to True.
The results of CreateUsingTopology, CreateUsing2Fields, CreateUsingPoints is an IEnumBSTR, which is a container for the list of errors encountered during route creation.
Method Summary | |
---|---|
IEnumBSTR |
createUsing2Fields(String fmFieldName,
String tmFieldName,
IFeatureClassName outputFClassName,
IGeometryDef outputGeometryDef,
String configKeyword,
ITrackCancel trackCancel)
Create routes from polylines using two fields. |
IEnumBSTR |
createUsingCoordinatePriority(String lengthFieldName,
int seedingCorner,
boolean ignoreGaps,
IFeatureClassName outputFClassName,
IGeometryDef outputGeometryDef,
String configKeyword,
ITrackCancel trackCancel)
Create routes from using topology. |
IEnumBSTR |
createUsingPoints(ISelectionSet pointSelection,
String pointRIDFieldName,
String pointMeasureFieldName,
int updateHow,
boolean ignoreGaps,
double tolerance,
boolean allInputFeatures,
IFeatureClassName outputFClassName,
IGeometryDef outputGeometryDef,
String configKeyword,
ITrackCancel trackCancel)
Create routes from polylines using points to assign measures. |
IFeatureClass |
getInputFeatureClass()
The input features. |
ISelectionSet |
getInputFeatureSelection()
A selection set of input features. |
String |
getInputRouteIDFieldName()
The input route identifier field name. |
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. |
void |
setInputFeatureSelectionByRef(ISelectionSet selection)
A selection set of input features. |
void |
setInputRouteIDFieldName(String fieldName)
The input route identifier field name. |
Method Detail |
---|
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
This sets the input feature class, IFeatureClass, the routes are to be created from. The input feature class must have its geometry of type Polyline.
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
If the InputFeatureSelection is set, the InputFeatureClass does not get used even if it is set.
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
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 createUsing2Fields(String fmFieldName, String tmFieldName, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, String configKeyword, ITrackCancel trackCancel) throws IOException, AutomationException
The fmFieldName and tmFieldName parameters passed into this method are the names of the fields in the InputFeatureClass which are used to set the start (from) and the end (to) measure values of that feature.
fmFieldName
- The fmFieldName (in)tmFieldName
- The tmFieldName (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 createUsingCoordinatePriority(String lengthFieldName, int seedingCorner, boolean ignoreGaps, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, String configKeyword, ITrackCancel trackCancel) throws IOException, AutomationException
The lengthFieldName is the name of the field in the input feature class which contains the measures of the route. Measures will be set starting from zero to the value in this field.
The seedingCorner parameter specifies the coordinate priority of where the route measure will start (measure = 0). The coordinate priority can be:
0 - esriMSeedingUperLeft
1 - esriMSeedingBottomLeft
2 - esriMSeedingUpperRight
3 - esriMSeedingBottomRight
lengthFieldName
- The lengthFieldName (in)seedingCorner
- A com.esri.arcgis.location.esriMSeedingCorner constant (in)ignoreGaps
- The ignoreGaps (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 createUsingPoints(ISelectionSet pointSelection, String pointRIDFieldName, String pointMeasureFieldName, int updateHow, boolean ignoreGaps, double tolerance, boolean allInputFeatures, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, String configKeyword, ITrackCancel trackCancel) throws IOException, AutomationException
The CreateUsingPoints method creates a route feature class by taking input a Polyline feature class and a selection set of Points or Multipoints which represent the calibration points to be used to set the measures of the Polyline. The calibration points are features inside a feature class, which contain fields pointRIDFieldName and pointMeasrueFieldName . The pointRIDFieldName field is the route identifier (the line feature in the InputFeatureClass) the calibration point refers to. The pointMeasureFieldName field contains the calibration measure values.
pointSelection
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)pointRIDFieldName
- The pointRIDFieldName (in)pointMeasureFieldName
- The pointMeasureFieldName (in)updateHow
- The updateHow (in)ignoreGaps
- The ignoreGaps (in)tolerance
- The tolerance (in)allInputFeatures
- The allInputFeatures (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 |