com.esri.arcgis.geoprocessing.tools.spatialanalysttools
Class CostDistance

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

public class CostDistance
extends AbstractGPTool

Calculates the least accumulative cost distance for each cell to the nearest source over a cost surface. The Cost Distance tool is contained in the Spatial Analyst Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CostDistance()
          Creates the Cost Distance tool with defaults.
CostDistance(java.lang.Object inSourceData, java.lang.Object inCostRaster, java.lang.Object outDistanceRaster)
          Creates the Cost Distance tool with the required parameters.
 
Method Summary
 java.lang.Object getInCostRaster()
          Returns the Input cost raster parameter of this tool .
 java.lang.Object getInSourceData()
          Returns the Input raster or feature source data parameter of this tool .
 double getMaximumDistance()
          Returns the Maximum distance parameter of this tool .
 java.lang.Object getOutBacklinkRaster()
          Returns the Output backlink raster parameter of this tool .
 java.lang.Object getOutDistanceRaster()
          Returns the Output distance raster parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setInCostRaster(java.lang.Object inCostRaster)
          Sets the Input cost raster parameter of this tool .
 void setInSourceData(java.lang.Object inSourceData)
          Sets the Input raster or feature source data parameter of this tool .
 void setMaximumDistance(double maximumDistance)
          Sets the Maximum distance parameter of this tool .
 void setOutBacklinkRaster(java.lang.Object outBacklinkRaster)
          Sets the Output backlink raster parameter of this tool .
 void setOutDistanceRaster(java.lang.Object outDistanceRaster)
          Sets the Output distance raster 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

CostDistance

public CostDistance()
Creates the Cost Distance tool with defaults.

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


CostDistance

public CostDistance(java.lang.Object inSourceData,
                    java.lang.Object inCostRaster,
                    java.lang.Object outDistanceRaster)
Creates the Cost Distance 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:
inSourceData - the input source locations. this is a raster or feature dataset that identifies the cells or locations to which the least accumulated cost distance for every output cell location is calculated. for rasters, the input type can be integer or floating point.
inCostRaster - a raster defining the impedance or cost to move planimetrically through each cell. the value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution while also compensating for diagonal movement to obtain the total cost of passing through the cell. the values of the cost raster can be integer or floating point, but they cannot be negative or zero (you cannot have a negative or zero cost).
outDistanceRaster - the output cost distance raster. the cost distance raster identifies, for each cell, the least accumulative cost distance over a cost surface to the identified source locations. a source can be a cell, a set of cells, or one or more feature locations. the output raster is of floating point type.
Method Detail

getInSourceData

public java.lang.Object getInSourceData()
Returns the Input raster or feature source data parameter of this tool . This parameter is the input source locations. this is a raster or feature dataset that identifies the cells or locations to which the least accumulated cost distance for every output cell location is calculated. for rasters, the input type can be integer or floating point. This is a required parameter.

Returns:
the Input raster or feature source data

setInSourceData

public void setInSourceData(java.lang.Object inSourceData)
Sets the Input raster or feature source data parameter of this tool . This parameter is the input source locations. this is a raster or feature dataset that identifies the cells or locations to which the least accumulated cost distance for every output cell location is calculated. for rasters, the input type can be integer or floating point. This is a required parameter.

Parameters:
inSourceData - the input source locations. this is a raster or feature dataset that identifies the cells or locations to which the least accumulated cost distance for every output cell location is calculated. for rasters, the input type can be integer or floating point.

getInCostRaster

public java.lang.Object getInCostRaster()
Returns the Input cost raster parameter of this tool . This parameter is a raster defining the impedance or cost to move planimetrically through each cell. the value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution while also compensating for diagonal movement to obtain the total cost of passing through the cell. the values of the cost raster can be integer or floating point, but they cannot be negative or zero (you cannot have a negative or zero cost). This is a required parameter.

Returns:
the Input cost raster

setInCostRaster

public void setInCostRaster(java.lang.Object inCostRaster)
Sets the Input cost raster parameter of this tool . This parameter is a raster defining the impedance or cost to move planimetrically through each cell. the value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution while also compensating for diagonal movement to obtain the total cost of passing through the cell. the values of the cost raster can be integer or floating point, but they cannot be negative or zero (you cannot have a negative or zero cost). This is a required parameter.

Parameters:
inCostRaster - a raster defining the impedance or cost to move planimetrically through each cell. the value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution while also compensating for diagonal movement to obtain the total cost of passing through the cell. the values of the cost raster can be integer or floating point, but they cannot be negative or zero (you cannot have a negative or zero cost).

getOutDistanceRaster

public java.lang.Object getOutDistanceRaster()
Returns the Output distance raster parameter of this tool . This parameter is the output cost distance raster. the cost distance raster identifies, for each cell, the least accumulative cost distance over a cost surface to the identified source locations. a source can be a cell, a set of cells, or one or more feature locations. the output raster is of floating point type. This is a required parameter.

Returns:
the Output distance raster

setOutDistanceRaster

public void setOutDistanceRaster(java.lang.Object outDistanceRaster)
Sets the Output distance raster parameter of this tool . This parameter is the output cost distance raster. the cost distance raster identifies, for each cell, the least accumulative cost distance over a cost surface to the identified source locations. a source can be a cell, a set of cells, or one or more feature locations. the output raster is of floating point type. This is a required parameter.

Parameters:
outDistanceRaster - the output cost distance raster. the cost distance raster identifies, for each cell, the least accumulative cost distance over a cost surface to the identified source locations. a source can be a cell, a set of cells, or one or more feature locations. the output raster is of floating point type.

getMaximumDistance

public double getMaximumDistance()
Returns the Maximum distance parameter of this tool . This parameter is defines the threshold that the accumulative cost values cannot exceed. if an accumulative cost distance value exceeds this value, the output value for the cell location will be NoData. The maximum distance defines the extent for which the accumulative cost distances are calculated. the default distance is to the edge of the output raster. This is an optional parameter.

Returns:
the Maximum distance

setMaximumDistance

public void setMaximumDistance(double maximumDistance)
Sets the Maximum distance parameter of this tool . This parameter is defines the threshold that the accumulative cost values cannot exceed. if an accumulative cost distance value exceeds this value, the output value for the cell location will be NoData. The maximum distance defines the extent for which the accumulative cost distances are calculated. the default distance is to the edge of the output raster. This is an optional parameter.

Parameters:
maximumDistance - defines the threshold that the accumulative cost values cannot exceed. if an accumulative cost distance value exceeds this value, the output value for the cell location will be NoData. The maximum distance defines the extent for which the accumulative cost distances are calculated. the default distance is to the edge of the output raster.

getOutBacklinkRaster

public java.lang.Object getOutBacklinkRaster()
Returns the Output backlink raster parameter of this tool . This parameter is the output cost back-link raster. the back-link raster contains values of 0 through 8, which define the direction or identify the next neighboring cell (the succeeding cell) along the least accumulative cost path from a cell to reach its least cost source. if the path is to pass into the right neighbor, the cell will be assigned the value 1, 2 for the lower right diagonal cell, and continuing clockwise. The value 0 is reserved for source cells. This is an optional parameter.

Returns:
the Output backlink raster

setOutBacklinkRaster

public void setOutBacklinkRaster(java.lang.Object outBacklinkRaster)
Sets the Output backlink raster parameter of this tool . This parameter is the output cost back-link raster. the back-link raster contains values of 0 through 8, which define the direction or identify the next neighboring cell (the succeeding cell) along the least accumulative cost path from a cell to reach its least cost source. if the path is to pass into the right neighbor, the cell will be assigned the value 1, 2 for the lower right diagonal cell, and continuing clockwise. The value 0 is reserved for source cells. This is an optional parameter.

Parameters:
outBacklinkRaster - the output cost back-link raster. the back-link raster contains values of 0 through 8, which define the direction or identify the next neighboring cell (the succeeding cell) along the least accumulative cost path from a cell to reach its least cost source. if the path is to pass into the right neighbor, the cell will be assigned the value 1, 2 for the lower right diagonal cell, and continuing clockwise. The value 0 is reserved for source cells.

getToolName

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

Returns:
the tool name

getToolboxName

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

Returns:
the tool box name

getToolboxAlias

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

Returns:
the tool box alias