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

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

public class Aggregate
extends AbstractGPTool

Generates a reduced-resolution version of a raster. Each output cell contains the Sum, Minimum, Maximum, Mean, or Median of the input cells that are encompassed by the extent of that cell. The Aggregate 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
Aggregate()
          Creates the Aggregate tool with defaults.
Aggregate(Object inRaster, Object outRaster, int cellFactor)
          Creates the Aggregate tool with the required parameters.
 
Method Summary
 String getAggregationType()
          Returns the Aggregation technique parameter of this tool .
 int getCellFactor()
          Returns the Cell factor parameter of this tool .
 String getExtentHandling()
          Returns the Expand extent if needed parameter of this tool .
 String getIgnoreNodata()
          Returns the Ignore NoData in calculations parameter of this tool .
 Object getInRaster()
          Returns the Input raster parameter of this tool .
 Object getOutRaster()
          Returns the Output raster 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 setAggregationType(String aggregationType)
          Sets the Aggregation technique parameter of this tool .
 void setCellFactor(int cellFactor)
          Sets the Cell factor parameter of this tool .
 void setExtentHandling(String extentHandling)
          Sets the Expand extent if needed parameter of this tool .
 void setIgnoreNodata(String ignoreNodata)
          Sets the Ignore NoData in calculations parameter of this tool .
 void setInRaster(Object inRaster)
          Sets the Input raster parameter of this tool .
 void setOutRaster(Object outRaster)
          Sets the Output 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

Aggregate

public Aggregate()
Creates the Aggregate tool with defaults.

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


Aggregate

public Aggregate(Object inRaster,
                 Object outRaster,
                 int cellFactor)
Creates the Aggregate 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:
inRaster - the input raster to aggregate. it can be of integer or floating point type.
outRaster - the output aggregated raster. it is a reduced-resolution version of the input raster.
cellFactor - the factor by which to multiply the cell size of the input raster to obtain the desired resolution for the output raster. for example, a cell factor value of three would result in an output cell size three times larger than that of the input raster. the value must be an integer greater than 1.
Method Detail

getInRaster

public Object getInRaster()
Returns the Input raster parameter of this tool . This parameter is the input raster to aggregate. it can be of integer or floating point type. This is a required parameter.

Returns:
the Input raster

setInRaster

public void setInRaster(Object inRaster)
Sets the Input raster parameter of this tool . This parameter is the input raster to aggregate. it can be of integer or floating point type. This is a required parameter.

Parameters:
inRaster - the input raster to aggregate. it can be of integer or floating point type.

getOutRaster

public Object getOutRaster()
Returns the Output raster parameter of this tool . This parameter is the output aggregated raster. it is a reduced-resolution version of the input raster. This is a required parameter.

Returns:
the Output raster

setOutRaster

public void setOutRaster(Object outRaster)
Sets the Output raster parameter of this tool . This parameter is the output aggregated raster. it is a reduced-resolution version of the input raster. This is a required parameter.

Parameters:
outRaster - the output aggregated raster. it is a reduced-resolution version of the input raster.

getCellFactor

public int getCellFactor()
Returns the Cell factor parameter of this tool . This parameter is the factor by which to multiply the cell size of the input raster to obtain the desired resolution for the output raster. for example, a cell factor value of three would result in an output cell size three times larger than that of the input raster. the value must be an integer greater than 1. This is a required parameter.

Returns:
the Cell factor

setCellFactor

public void setCellFactor(int cellFactor)
Sets the Cell factor parameter of this tool . This parameter is the factor by which to multiply the cell size of the input raster to obtain the desired resolution for the output raster. for example, a cell factor value of three would result in an output cell size three times larger than that of the input raster. the value must be an integer greater than 1. This is a required parameter.

Parameters:
cellFactor - the factor by which to multiply the cell size of the input raster to obtain the desired resolution for the output raster. for example, a cell factor value of three would result in an output cell size three times larger than that of the input raster. the value must be an integer greater than 1.

getAggregationType

public String getAggregationType()
Returns the Aggregation technique parameter of this tool . This parameter is establishes how the value for each output cell will be determined. the values of the input cells encompassed by the coarser output cell are aggregated by one of the following statistics: This is an optional parameter.

Returns:
the Aggregation technique

setAggregationType

public void setAggregationType(String aggregationType)
Sets the Aggregation technique parameter of this tool . This parameter is establishes how the value for each output cell will be determined. the values of the input cells encompassed by the coarser output cell are aggregated by one of the following statistics: This is an optional parameter.

Parameters:
aggregationType - establishes how the value for each output cell will be determined. the values of the input cells encompassed by the coarser output cell are aggregated by one of the following statistics:

getExtentHandling

public String getExtentHandling()
Returns the Expand extent if needed parameter of this tool . This parameter is defines how to handle the boundaries of the input raster when its rows or columns are not a multiple of the cell factor. if the number of rows and columns in the input raster is a multiple of the cell_factor, these keywords are not used. This is an optional parameter.

Returns:
the Expand extent if needed

setExtentHandling

public void setExtentHandling(String extentHandling)
Sets the Expand extent if needed parameter of this tool . This parameter is defines how to handle the boundaries of the input raster when its rows or columns are not a multiple of the cell factor. if the number of rows and columns in the input raster is a multiple of the cell_factor, these keywords are not used. This is an optional parameter.

Parameters:
extentHandling - defines how to handle the boundaries of the input raster when its rows or columns are not a multiple of the cell factor. if the number of rows and columns in the input raster is a multiple of the cell_factor, these keywords are not used.

getIgnoreNodata

public String getIgnoreNodata()
Returns the Ignore NoData in calculations parameter of this tool . This parameter is denotes whether NoData values are ignored by the aggregation calculation. This is an optional parameter.

Returns:
the Ignore NoData in calculations

setIgnoreNodata

public void setIgnoreNodata(String ignoreNodata)
Sets the Ignore NoData in calculations parameter of this tool . This parameter is denotes whether NoData values are ignored by the aggregation calculation. This is an optional parameter.

Parameters:
ignoreNodata - denotes whether NoData values are ignored by the aggregation calculation.

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