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

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

public class Warp
extends AbstractGPTool

Performs a transformation on the raster based on the source and target control points using a polynomial transformation. This is similar to georeferencing using a text file. The Warp tool is contained in the Data Management Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
Warp()
          Creates the Warp tool with defaults.
Warp(java.lang.Object inRaster, java.lang.Object sourceControlPoints, java.lang.Object targetControlPoints, java.lang.Object outRaster)
          Creates the Warp tool with the required parameters.
 
Method Summary
 java.lang.Object getInRaster()
          Returns the Input Raster parameter of this tool .
 java.lang.Object getOutRaster()
          Returns the Output Raster Dataset parameter of this tool .
 java.lang.String getResamplingType()
          Returns the Resampling Techinque parameter of this tool .
 java.lang.Object getSourceControlPoints()
          Returns the Source Control Points parameter of this tool .
 java.lang.Object getTargetControlPoints()
          Returns the Target Control Points 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.
 java.lang.String getTransformationType()
          Returns the Transformation Type parameter of this tool .
 void setInRaster(java.lang.Object inRaster)
          Sets the Input Raster parameter of this tool .
 void setOutRaster(java.lang.Object outRaster)
          Sets the Output Raster Dataset parameter of this tool .
 void setResamplingType(java.lang.String resamplingType)
          Sets the Resampling Techinque parameter of this tool .
 void setSourceControlPoints(java.lang.Object sourceControlPoints)
          Sets the Source Control Points parameter of this tool .
 void setTargetControlPoints(java.lang.Object targetControlPoints)
          Sets the Target Control Points parameter of this tool .
 void setTransformationType(java.lang.String transformationType)
          Sets the Transformation Type 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

Warp

public Warp()
Creates the Warp tool with defaults.

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


Warp

public Warp(java.lang.Object inRaster,
            java.lang.Object sourceControlPoints,
            java.lang.Object targetControlPoints,
            java.lang.Object outRaster)
Creates the Warp 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 dataset.
sourceControlPoints - the source points are the "from" coordinates of the links.
targetControlPoints - the target points are the "to" coordinates of the links.
outRaster - output raster dataset. when storing the raster dataset in a file format, you need to specify the file extension: when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. when storing your raster dataset to a JPEG file, a JPEG 2000 file, a TIFF file, or a geodatabase, you can specify a compression type and compression quality.
Method Detail

getInRaster

public java.lang.Object getInRaster()
Returns the Input Raster parameter of this tool . This parameter is the input raster dataset. This is a required parameter.

Returns:
the Input Raster

setInRaster

public void setInRaster(java.lang.Object inRaster)
Sets the Input Raster parameter of this tool . This parameter is the input raster dataset. This is a required parameter.

Parameters:
inRaster - the input raster dataset.

getSourceControlPoints

public java.lang.Object getSourceControlPoints()
Returns the Source Control Points parameter of this tool . This parameter is the source points are the "from" coordinates of the links. This is a required parameter.

Returns:
the Source Control Points

setSourceControlPoints

public void setSourceControlPoints(java.lang.Object sourceControlPoints)
Sets the Source Control Points parameter of this tool . This parameter is the source points are the "from" coordinates of the links. This is a required parameter.

Parameters:
sourceControlPoints - the source points are the "from" coordinates of the links.

getTargetControlPoints

public java.lang.Object getTargetControlPoints()
Returns the Target Control Points parameter of this tool . This parameter is the target points are the "to" coordinates of the links. This is a required parameter.

Returns:
the Target Control Points

setTargetControlPoints

public void setTargetControlPoints(java.lang.Object targetControlPoints)
Sets the Target Control Points parameter of this tool . This parameter is the target points are the "to" coordinates of the links. This is a required parameter.

Parameters:
targetControlPoints - the target points are the "to" coordinates of the links.

getOutRaster

public java.lang.Object getOutRaster()
Returns the Output Raster Dataset parameter of this tool . This parameter is output raster dataset. when storing the raster dataset in a file format, you need to specify the file extension: when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. when storing your raster dataset to a JPEG file, a JPEG 2000 file, a TIFF file, or a geodatabase, you can specify a compression type and compression quality. This is a required parameter.

Returns:
the Output Raster Dataset

setOutRaster

public void setOutRaster(java.lang.Object outRaster)
Sets the Output Raster Dataset parameter of this tool . This parameter is output raster dataset. when storing the raster dataset in a file format, you need to specify the file extension: when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. when storing your raster dataset to a JPEG file, a JPEG 2000 file, a TIFF file, or a geodatabase, you can specify a compression type and compression quality. This is a required parameter.

Parameters:
outRaster - output raster dataset. when storing the raster dataset in a file format, you need to specify the file extension: when storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. when storing your raster dataset to a JPEG file, a JPEG 2000 file, a TIFF file, or a geodatabase, you can specify a compression type and compression quality.

getTransformationType

public java.lang.String getTransformationType()
Returns the Transformation Type parameter of this tool . This parameter is the geometric transformation type. This is an optional parameter.

Returns:
the Transformation Type

setTransformationType

public void setTransformationType(java.lang.String transformationType)
Sets the Transformation Type parameter of this tool . This parameter is the geometric transformation type. This is an optional parameter.

Parameters:
transformationType - the geometric transformation type.

getResamplingType

public java.lang.String getResamplingType()
Returns the Resampling Techinque parameter of this tool . This parameter is the resampling algorithm to be used. The default is NEAREST. the NEAREST and MAJORITY options are used for categorical data, such as a land use classification. The NEAREST option is the default since it is the quickest and also because it will not change the cell values. Do not use NEAREST or MAJORITY for continuous data, such as elevation surfaces. the BILINEAR option and the CUBIC option are most appropriate for continuous data. It is not recommended that BILINEAR or CUBIC be used with categorical data because the cell values may be altered. This is an optional parameter.

Returns:
the Resampling Techinque

setResamplingType

public void setResamplingType(java.lang.String resamplingType)
Sets the Resampling Techinque parameter of this tool . This parameter is the resampling algorithm to be used. The default is NEAREST. the NEAREST and MAJORITY options are used for categorical data, such as a land use classification. The NEAREST option is the default since it is the quickest and also because it will not change the cell values. Do not use NEAREST or MAJORITY for continuous data, such as elevation surfaces. the BILINEAR option and the CUBIC option are most appropriate for continuous data. It is not recommended that BILINEAR or CUBIC be used with categorical data because the cell values may be altered. This is an optional parameter.

Parameters:
resamplingType - the resampling algorithm to be used. The default is NEAREST. the NEAREST and MAJORITY options are used for categorical data, such as a land use classification. The NEAREST option is the default since it is the quickest and also because it will not change the cell values. Do not use NEAREST or MAJORITY for continuous data, such as elevation surfaces. the BILINEAR option and the CUBIC option are most appropriate for continuous data. It is not recommended that BILINEAR or CUBIC be used with categorical data because the cell values may be altered.

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