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

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

public class Clip
extends AbstractGPTool

Creates a spatial subset of a raster dataset. The Clip 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
Clip()
          Creates the Clip tool with defaults.
Clip(Object inRaster, Object rectangle, Object outRaster)
          Creates the Clip tool with the required parameters.
 
Method Summary
 String getClippingGeometry()
          Returns the Use Input Features for Clipping Geometry parameter of this tool .
 Object getInRaster()
          Returns the Input Raster parameter of this tool .
 Object getInTemplateDataset()
          Returns the Output Extent parameter of this tool .
 double getNodataValue()
          Returns the NoData Value parameter of this tool .
 Object getOutRaster()
          Returns the Output Raster Dataset parameter of this tool .
 Object getRectangle()
          Returns the Rectangle 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 setClippingGeometry(String clippingGeometry)
          Sets the Use Input Features for Clipping Geometry parameter of this tool .
 void setInRaster(Object inRaster)
          Sets the Input Raster parameter of this tool .
 void setInTemplateDataset(Object inTemplateDataset)
          Sets the Output Extent parameter of this tool .
 void setNodataValue(double nodataValue)
          Sets the NoData Value parameter of this tool .
 void setOutRaster(Object outRaster)
          Sets the Output Raster Dataset parameter of this tool .
 void setRectangle(Object rectangle)
          Sets the Rectangle 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

Clip

public Clip()
Creates the Clip tool with defaults.

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


Clip

public Clip(Object inRaster,
            Object rectangle,
            Object outRaster)
Creates the Clip 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.
rectangle - the four coordinates defining the minimum bounding rectangle to be clipped. Define in this order: X-Minimum, Y-Minimum, X-Maximum, Y-Maximum. if the clip extent specified is not aligned with the input raster dataset, the Clip tool makes sure that the proper alignment is used. This may cause the output to have a slightly different extent than specified in the tool.
outRaster - the output raster dataset. Make sure that this output format is able to support the proper pixel depth. 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 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(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.

getRectangle

public Object getRectangle()
Returns the Rectangle parameter of this tool . This parameter is the four coordinates defining the minimum bounding rectangle to be clipped. Define in this order: X-Minimum, Y-Minimum, X-Maximum, Y-Maximum. if the clip extent specified is not aligned with the input raster dataset, the Clip tool makes sure that the proper alignment is used. This may cause the output to have a slightly different extent than specified in the tool. This is a required parameter.

Returns:
the Rectangle

setRectangle

public void setRectangle(Object rectangle)
Sets the Rectangle parameter of this tool . This parameter is the four coordinates defining the minimum bounding rectangle to be clipped. Define in this order: X-Minimum, Y-Minimum, X-Maximum, Y-Maximum. if the clip extent specified is not aligned with the input raster dataset, the Clip tool makes sure that the proper alignment is used. This may cause the output to have a slightly different extent than specified in the tool. This is a required parameter.

Parameters:
rectangle - the four coordinates defining the minimum bounding rectangle to be clipped. Define in this order: X-Minimum, Y-Minimum, X-Maximum, Y-Maximum. if the clip extent specified is not aligned with the input raster dataset, the Clip tool makes sure that the proper alignment is used. This may cause the output to have a slightly different extent than specified in the tool.

getOutRaster

public Object getOutRaster()
Returns the Output Raster Dataset parameter of this tool . This parameter is the output raster dataset. Make sure that this output format is able to support the proper pixel depth. 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(Object outRaster)
Sets the Output Raster Dataset parameter of this tool . This parameter is the output raster dataset. Make sure that this output format is able to support the proper pixel depth. 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 - the output raster dataset. Make sure that this output format is able to support the proper pixel depth. 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.

getInTemplateDataset

public Object getInTemplateDataset()
Returns the Output Extent parameter of this tool . This parameter is an existing raster or vector layer, which can be used as the clip extent. The clip output includes any pixels that intersect the minimum bounding rectangle. if a feature class is used as the output extent and you want to clip the raster based on the polygon features, choose the ClippingGeometry option. If Clipping Geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth. This is an optional parameter.

Returns:
the Output Extent

setInTemplateDataset

public void setInTemplateDataset(Object inTemplateDataset)
Sets the Output Extent parameter of this tool . This parameter is an existing raster or vector layer, which can be used as the clip extent. The clip output includes any pixels that intersect the minimum bounding rectangle. if a feature class is used as the output extent and you want to clip the raster based on the polygon features, choose the ClippingGeometry option. If Clipping Geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth. This is an optional parameter.

Parameters:
inTemplateDataset - an existing raster or vector layer, which can be used as the clip extent. The clip output includes any pixels that intersect the minimum bounding rectangle. if a feature class is used as the output extent and you want to clip the raster based on the polygon features, choose the ClippingGeometry option. If Clipping Geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth.

getNodataValue

public double getNodataValue()
Returns the NoData Value parameter of this tool . This parameter is all the pixels with the specified value will be set to NoData in the output raster dataset. This is an optional parameter.

Returns:
the NoData Value

setNodataValue

public void setNodataValue(double nodataValue)
Sets the NoData Value parameter of this tool . This parameter is all the pixels with the specified value will be set to NoData in the output raster dataset. This is an optional parameter.

Parameters:
nodataValue - all the pixels with the specified value will be set to NoData in the output raster dataset.

getClippingGeometry

public String getClippingGeometry()
Returns the Use Input Features for Clipping Geometry parameter of this tool . This parameter is if you are using a feature class as the output extent, you have the option to clip the raster by the extent of the feature class or by its polygon perimeter. if clipping geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth. This is an optional parameter.

Returns:
the Use Input Features for Clipping Geometry

setClippingGeometry

public void setClippingGeometry(String clippingGeometry)
Sets the Use Input Features for Clipping Geometry parameter of this tool . This parameter is if you are using a feature class as the output extent, you have the option to clip the raster by the extent of the feature class or by its polygon perimeter. if clipping geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth. This is an optional parameter.

Parameters:
clippingGeometry - if you are using a feature class as the output extent, you have the option to clip the raster by the extent of the feature class or by its polygon perimeter. if clipping geometry is used, then the pixel depth of the output may be promoted. Therefore, you need to make sure that the output format can support the proper pixel depth.

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