com.esri.arcgis.geoprocessing.tools.linearreferencingtools
Class CreateRoutes

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.linearreferencingtools.CreateRoutes
All Implemented Interfaces:
GPTool

public class CreateRoutes
extends AbstractGPTool

Creates routes from existing lines. The input line features that share a common identifier are merged to create a single route. The Create Routes tool is contained in the Linear Referencing Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CreateRoutes()
          Creates the Create Routes tool with defaults.
CreateRoutes(Object inLineFeatures, Object routeIdField, Object outFeatureClass, String measureSource)
          Creates the Create Routes tool with the required parameters.
 
Method Summary
 String getBuildIndex()
          Returns the Build index parameter of this tool .
 String getCoordinatePriority()
          Returns the Coordinate Priority parameter of this tool .
 Object getFromMeasureField()
          Returns the From-Measure Field parameter of this tool .
 String getIgnoreGaps()
          Returns the Ignore spatial gaps parameter of this tool .
 Object getInLineFeatures()
          Returns the Input Line Features parameter of this tool .
 double getMeasureFactor()
          Returns the Measure Factor parameter of this tool .
 double getMeasureOffset()
          Returns the Measure Offset parameter of this tool .
 String getMeasureSource()
          Returns the Measure Source parameter of this tool .
 Object getOutFeatureClass()
          Returns the Output Route Feature Class parameter of this tool .
 Object getRouteIdField()
          Returns the Route Identifier Field parameter of this tool .
 Object getToMeasureField()
          Returns the To-Measure Field parameter of this tool .
 String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 String getToolboxName()
          Returns the name of the tool box containing this tool.
 String getToolName()
          Returns the name of this tool.
 void setBuildIndex(String buildIndex)
          Sets the Build index parameter of this tool .
 void setCoordinatePriority(String coordinatePriority)
          Sets the Coordinate Priority parameter of this tool .
 void setFromMeasureField(Object fromMeasureField)
          Sets the From-Measure Field parameter of this tool .
 void setIgnoreGaps(String ignoreGaps)
          Sets the Ignore spatial gaps parameter of this tool .
 void setInLineFeatures(Object inLineFeatures)
          Sets the Input Line Features parameter of this tool .
 void setMeasureFactor(double measureFactor)
          Sets the Measure Factor parameter of this tool .
 void setMeasureOffset(double measureOffset)
          Sets the Measure Offset parameter of this tool .
 void setMeasureSource(String measureSource)
          Sets the Measure Source parameter of this tool .
 void setOutFeatureClass(Object outFeatureClass)
          Sets the Output Route Feature Class parameter of this tool .
 void setRouteIdField(Object routeIdField)
          Sets the Route Identifier Field parameter of this tool .
 void setToMeasureField(Object toMeasureField)
          Sets the To-Measure Field parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateRoutes

public CreateRoutes()
Creates the Create Routes tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


CreateRoutes

public CreateRoutes(Object inLineFeatures,
                    Object routeIdField,
                    Object outFeatureClass,
                    String measureSource)
Creates the Create Routes tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inLineFeatures - the features from which routes will be created.
routeIdField - the field containing values that uniquely identify each route.
outFeatureClass - the feature class to be created. It can be a shapefile or a geodatabase feature class.
measureSource - specifies how route measures will be obtained.
Method Detail

getInLineFeatures

public Object getInLineFeatures()
Returns the Input Line Features parameter of this tool . This parameter is the features from which routes will be created. This is a required parameter.

Returns:
the Input Line Features

setInLineFeatures

public void setInLineFeatures(Object inLineFeatures)
Sets the Input Line Features parameter of this tool . This parameter is the features from which routes will be created. This is a required parameter.

Parameters:
inLineFeatures - the features from which routes will be created.

getRouteIdField

public Object getRouteIdField()
Returns the Route Identifier Field parameter of this tool . This parameter is the field containing values that uniquely identify each route. This is a required parameter.

Returns:
the Route Identifier Field

setRouteIdField

public void setRouteIdField(Object routeIdField)
Sets the Route Identifier Field parameter of this tool . This parameter is the field containing values that uniquely identify each route. This is a required parameter.

Parameters:
routeIdField - the field containing values that uniquely identify each route.

getOutFeatureClass

public Object getOutFeatureClass()
Returns the Output Route Feature Class parameter of this tool . This parameter is the feature class to be created. It can be a shapefile or a geodatabase feature class. This is a required parameter.

Returns:
the Output Route Feature Class

setOutFeatureClass

public void setOutFeatureClass(Object outFeatureClass)
Sets the Output Route Feature Class parameter of this tool . This parameter is the feature class to be created. It can be a shapefile or a geodatabase feature class. This is a required parameter.

Parameters:
outFeatureClass - the feature class to be created. It can be a shapefile or a geodatabase feature class.

getMeasureSource

public String getMeasureSource()
Returns the Measure Source parameter of this tool . This parameter is specifies how route measures will be obtained. This is a required parameter.

Returns:
the Measure Source

setMeasureSource

public void setMeasureSource(String measureSource)
Sets the Measure Source parameter of this tool . This parameter is specifies how route measures will be obtained. This is a required parameter.

Parameters:
measureSource - specifies how route measures will be obtained.

getFromMeasureField

public Object getFromMeasureField()
Returns the From-Measure Field parameter of this tool . This parameter is a field containing measure values. This field must be numeric and is required when the measure source is ONE_FIELD or TWO_FIELDS. This is an optional parameter.

Returns:
the From-Measure Field

setFromMeasureField

public void setFromMeasureField(Object fromMeasureField)
Sets the From-Measure Field parameter of this tool . This parameter is a field containing measure values. This field must be numeric and is required when the measure source is ONE_FIELD or TWO_FIELDS. This is an optional parameter.

Parameters:
fromMeasureField - a field containing measure values. This field must be numeric and is required when the measure source is ONE_FIELD or TWO_FIELDS.

getToMeasureField

public Object getToMeasureField()
Returns the To-Measure Field parameter of this tool . This parameter is a field containing measure values. This field must be numeric and is required when the measure source is TWO_FIELDS. This is an optional parameter.

Returns:
the To-Measure Field

setToMeasureField

public void setToMeasureField(Object toMeasureField)
Sets the To-Measure Field parameter of this tool . This parameter is a field containing measure values. This field must be numeric and is required when the measure source is TWO_FIELDS. This is an optional parameter.

Parameters:
toMeasureField - a field containing measure values. This field must be numeric and is required when the measure source is TWO_FIELDS.

getCoordinatePriority

public String getCoordinatePriority()
Returns the Coordinate Priority parameter of this tool . This parameter is the position from which measures will be accumulated for each output route. This parameter is ignored when the measure source is TWO_FIELDS. This is an optional parameter.

Returns:
the Coordinate Priority

setCoordinatePriority

public void setCoordinatePriority(String coordinatePriority)
Sets the Coordinate Priority parameter of this tool . This parameter is the position from which measures will be accumulated for each output route. This parameter is ignored when the measure source is TWO_FIELDS. This is an optional parameter.

Parameters:
coordinatePriority - the position from which measures will be accumulated for each output route. This parameter is ignored when the measure source is TWO_FIELDS.

getMeasureFactor

public double getMeasureFactor()
Returns the Measure Factor parameter of this tool . This parameter is a value multiplied by the measure length of each input line before they are merged to create route measures. The default is 1. This is an optional parameter.

Returns:
the Measure Factor

setMeasureFactor

public void setMeasureFactor(double measureFactor)
Sets the Measure Factor parameter of this tool . This parameter is a value multiplied by the measure length of each input line before they are merged to create route measures. The default is 1. This is an optional parameter.

Parameters:
measureFactor - a value multiplied by the measure length of each input line before they are merged to create route measures. The default is 1.

getMeasureOffset

public double getMeasureOffset()
Returns the Measure Offset parameter of this tool . This parameter is a value added to the route measures after the input lines have been merged to create a route. The default is 0. This is an optional parameter.

Returns:
the Measure Offset

setMeasureOffset

public void setMeasureOffset(double measureOffset)
Sets the Measure Offset parameter of this tool . This parameter is a value added to the route measures after the input lines have been merged to create a route. The default is 0. This is an optional parameter.

Parameters:
measureOffset - a value added to the route measures after the input lines have been merged to create a route. The default is 0.

getIgnoreGaps

public String getIgnoreGaps()
Returns the Ignore spatial gaps parameter of this tool . This parameter is specifies whether spatial gaps will be ignored when calculating the measures on disjointed routes. This parameter is applicable when the measure source is LENGTH or ONE_FIELD. This is an optional parameter.

Returns:
the Ignore spatial gaps

setIgnoreGaps

public void setIgnoreGaps(String ignoreGaps)
Sets the Ignore spatial gaps parameter of this tool . This parameter is specifies whether spatial gaps will be ignored when calculating the measures on disjointed routes. This parameter is applicable when the measure source is LENGTH or ONE_FIELD. This is an optional parameter.

Parameters:
ignoreGaps - specifies whether spatial gaps will be ignored when calculating the measures on disjointed routes. This parameter is applicable when the measure source is LENGTH or ONE_FIELD.

getBuildIndex

public String getBuildIndex()
Returns the Build index parameter of this tool . This parameter is specifies whether an attribute index will be created for the route identifier field that is written to the output route feature class. This is an optional parameter.

Returns:
the Build index

setBuildIndex

public void setBuildIndex(String buildIndex)
Sets the Build index parameter of this tool . This parameter is specifies whether an attribute index will be created for the route identifier field that is written to the output route feature class. This is an optional parameter.

Parameters:
buildIndex - specifies whether an attribute index will be created for the route identifier field that is written to the output route feature class.

getToolName

public String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias