com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class Rescale

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

public class Rescale
extends AbstractGPTool

Scales (resizes) a raster by the specified x and y scale factors. The Rescale tool is contained in the Data Management Tools tool box.

Software restrictions: none

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
Rescale()
          Creates the Rescale tool with defaults.
Rescale(Object inRaster, Object outRaster, double xScale, double yScale)
          Creates the Rescale tool with the required parameters.
 
Method Summary
 Object getInRaster()
          Returns the Input Raster parameter of this tool .
 Object getOutRaster()
          Returns the Output Raster Dataset 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.
 double getXScale()
          Returns the X Scale Factor parameter of this tool .
 double getYScale()
          Returns the Y Scale Factor parameter of this tool .
 void setInRaster(Object inRaster)
          Sets the Input Raster parameter of this tool .
 void setOutRaster(Object outRaster)
          Sets the Output Raster Dataset parameter of this tool .
 void setXScale(double xScale)
          Sets the X Scale Factor parameter of this tool .
 void setYScale(double yScale)
          Sets the Y Scale Factor 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

Rescale

public Rescale()
Creates the Rescale tool with defaults.

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


Rescale

public Rescale(Object inRaster,
               Object outRaster,
               double xScale,
               double yScale)
Creates the Rescale 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 - Composite Geodataset, the input raster dataset.
outRaster - Raster Dataset, when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.
xScale - Double, the factor must be greater than zero.
yScale - Double, the factor must be greater than zero.
Method Detail

getInRaster

public Object getInRaster()
Returns the Input Raster parameter of this tool . This parameter is Composite Geodataset, the input raster dataset. 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 Composite Geodataset, the input raster dataset. This is a required parameter.

Parameters:
inRaster - Composite Geodataset, the input raster dataset.

getOutRaster

public Object getOutRaster()
Returns the Output Raster Dataset parameter of this tool . This parameter is Raster Dataset, when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality. This is a required parameter.

Returns:
the Output Raster Dataset

setOutRaster

public void setOutRaster(Object outRaster)
Sets the Output Raster Dataset parameter of this tool . This parameter is Raster Dataset, when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality. This is a required parameter.

Parameters:
outRaster - Raster Dataset, when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.

getXScale

public double getXScale()
Returns the X Scale Factor parameter of this tool . This parameter is Double, the factor must be greater than zero. This is a required parameter.

Returns:
the X Scale Factor

setXScale

public void setXScale(double xScale)
Sets the X Scale Factor parameter of this tool . This parameter is Double, the factor must be greater than zero. This is a required parameter.

Parameters:
xScale - Double, the factor must be greater than zero.

getYScale

public double getYScale()
Returns the Y Scale Factor parameter of this tool . This parameter is Double, the factor must be greater than zero. This is a required parameter.

Returns:
the Y Scale Factor

setYScale

public void setYScale(double yScale)
Sets the Y Scale Factor parameter of this tool . This parameter is Double, the factor must be greater than zero. This is a required parameter.

Parameters:
yScale - Double, the factor must be greater than zero.

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