|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.AbstractGPTool com.esri.arcgis.geoprocessing.tools.spatialanalysttools.CostAllocation
public class CostAllocation
Calculates for each cell its nearest source based on the least accumulative cost over a cost surface. The Cost Allocation tool is contained in the Spatial Analyst Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
CostAllocation()
Creates the Cost Allocation tool with defaults. |
|
CostAllocation(Object inSourceData,
Object inCostRaster,
Object outAllocationRaster)
Creates the Cost Allocation tool with the required parameters. |
Method Summary | |
---|---|
Object |
getInCostRaster()
Returns the Input cost raster parameter of this tool . |
Object |
getInSourceData()
Returns the Input raster or feature source data parameter of this tool . |
Object |
getInValueRaster()
Returns the Input value raster parameter of this tool . |
double |
getMaximumDistance()
Returns the Maximum distance parameter of this tool . |
Object |
getOutAllocationRaster()
Returns the Output allocation raster parameter of this tool . |
Object |
getOutBacklinkRaster()
Returns the Output backlink raster parameter of this tool . |
Object |
getOutDistanceRaster()
Returns the Output distance raster parameter of this tool . |
Object |
getSourceField()
Returns the Source 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 |
setInCostRaster(Object inCostRaster)
Sets the Input cost raster parameter of this tool . |
void |
setInSourceData(Object inSourceData)
Sets the Input raster or feature source data parameter of this tool . |
void |
setInValueRaster(Object inValueRaster)
Sets the Input value raster parameter of this tool . |
void |
setMaximumDistance(double maximumDistance)
Sets the Maximum distance parameter of this tool . |
void |
setOutAllocationRaster(Object outAllocationRaster)
Sets the Output allocation raster parameter of this tool . |
void |
setOutBacklinkRaster(Object outBacklinkRaster)
Sets the Output backlink raster parameter of this tool . |
void |
setOutDistanceRaster(Object outDistanceRaster)
Sets the Output distance raster parameter of this tool . |
void |
setSourceField(Object sourceField)
Sets the Source 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 |
---|
public CostAllocation()
Initializes the array of tool parameters with the default values specified when the tool was created.
public CostAllocation(Object inSourceData, Object inCostRaster, Object outAllocationRaster)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other 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. if the input source raster is floating point, the {in_value_raster} must be set, and it must be of integer type. The value raster will take precedence over any setting of the {source_field}.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).outAllocationRaster
- the output cost allocation raster. this raster identifies the zone of each source location (cell or feature) that could be reached with the least accumulative cost. the output raster is of integer typeMethod Detail |
---|
public Object getInSourceData()
public void setInSourceData(Object inSourceData)
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. if the input source raster is floating point, the {in_value_raster} must be set, and it must be of integer type. The value raster will take precedence over any setting of the {source_field}.public Object getInCostRaster()
public void setInCostRaster(Object inCostRaster)
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).public Object getOutAllocationRaster()
public void setOutAllocationRaster(Object outAllocationRaster)
outAllocationRaster
- the output cost allocation raster. this raster identifies the zone of each source location (cell or feature) that could be reached with the least accumulative cost. the output raster is of integer typepublic double getMaximumDistance()
public void setMaximumDistance(double maximumDistance)
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.public Object getInValueRaster()
public void setInValueRaster(Object inValueRaster)
inValueRaster
- the input integer raster that identifies the zone values that should be used for each input source location. for each source location (cell or feature), the value defined by the {in_value_raster} will be assigned to all cells allocated to the source location for the computation. The value raster will take precedence over any setting for the {source_field}.public Object getSourceField()
public void setSourceField(Object sourceField)
sourceField
- the field used to assign values to the source locations. It must be integer type. if the {in_value_raster} has been set, the values in that input will have precedence over any setting for the {source_field}.public Object getOutDistanceRaster()
public void setOutDistanceRaster(Object outDistanceRaster)
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.public Object getOutBacklinkRaster()
public void setOutBacklinkRaster(Object outBacklinkRaster)
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.public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |