com.esri.arcgis.carto
Interface IRasterLayerExport

All Superinterfaces:
Serializable
All Known Subinterfaces:
IRasterLayerExport2, IRasterLayerExport3
All Known Implementing Classes:
RasterLayerExport

public interface IRasterLayerExport
extends Serializable

Provides access to members that control exporting from a Raster Layer.

Superseded By

IRasterLayerExport2

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IRasterDataset export(IWorkspace pWorkspace, String newname, String format)
          Executes the raster layer exporting.
 void setExtent(IEnvelope rhs1)
          The extent of the raster to be exported.
 void setForce2RGB(boolean rhs1)
          Indicates whether to force exported raster to be RGB.
 void setRasterLayerByRef(IRasterLayer rhs1)
          The raster layer to be exported.
 void setSize(int cx, int cy)
          Sets the number of columns and rows of the exported raster.
 void setSpatialReferenceByRef(ISpatialReference rhs1)
          The coordinate system of the exported raster.
 

Method Detail

setRasterLayerByRef

void setRasterLayerByRef(IRasterLayer rhs1)
                         throws IOException,
                                AutomationException
The raster layer to be exported.

Remarks

The RasterLayer property is used to set the input RasterLayer to the RasterLayerExport object; this is a required property. Normally, a raster layer is associated with a raster renderer by default. You can change the raster renderer to what you need. If you don’t want to use the raster renderer to filter the pixel values during the export, remove the raster renderer from the raster layer before passing it to the RasterLayerExport object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.carto.IRasterLayer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExtent

void setExtent(IEnvelope rhs1)
               throws IOException,
                      AutomationException
The extent of the raster to be exported.

Remarks

The Extent property is used to specify the extent used in the export. If it not specified, the whole extent of the raster layer will be used.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSize

void setSize(int cx,
             int cy)
             throws IOException,
                    AutomationException
Sets the number of columns and rows of the exported raster.

Remarks

The SetSize method is used to set the column and row of the output raster. The ForceRGB property indicates to export a raster dataset with red, green and blue bands.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
cx - The cx (in)
cy - The cy (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setForce2RGB

void setForce2RGB(boolean rhs1)
                  throws IOException,
                         AutomationException
Indicates whether to force exported raster to be RGB.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialReferenceByRef

void setSpatialReferenceByRef(ISpatialReference rhs1)
                              throws IOException,
                                     AutomationException
The coordinate system of the exported raster.

Remarks

The SpatialReference is used to set the spatial reference of the output raster. If it not specified, the output will take the spatial reference from the RasterLayer. If the spatial reference specified is different from that in the RasterLayer, reprojection will accur on the fly.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

export

IRasterDataset export(IWorkspace pWorkspace,
                      String newname,
                      String format)
                      throws IOException,
                             AutomationException
Executes the raster layer exporting.

Remarks

Export method can export to the following raster formats. The format strings used for the supported formats are below, and they are case sensitive:

Format Name String Used
Imagine "IMAGINE Image"
TIFF "TIFF"
GRID "GRID"
JPEG "JPG"
JP2000 "JP2"
BMP "BMP"
PNG "PNG"
GIF "GIF"
PCI Raster "PIX"
X11 Pixmap "XPM"
PCRaster "MAP"
Memory Raster "MEM"
HDF4 "HDF4"
BIL "BIL"
BIP "BIP"
BSQ "BSQ"
Idrisi Raster Format "RST"
ENVI Raster Format "ENVI"
Geodatabase Raster "GDB"

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
newname - The newname (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.