|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRasterLayerExport
Provides access to members that control exporting from a Raster Layer.
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 |
---|
void setRasterLayerByRef(IRasterLayer rhs1) throws IOException, AutomationException
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.
rhs1
- A reference to a com.esri.arcgis.carto.IRasterLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExtent(IEnvelope rhs1) throws IOException, AutomationException
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.
rhs1
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSize(int cx, int cy) throws IOException, AutomationException
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.
cx
- The cx (in)cy
- The cy (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setForce2RGB(boolean rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSpatialReferenceByRef(ISpatialReference rhs1) throws IOException, AutomationException
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.
rhs1
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRasterDataset export(IWorkspace pWorkspace, String newname, String format) throws IOException, AutomationException
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" |
pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)newname
- The newname (in)format
- The format (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |