|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.RasterLayerExport
public class RasterLayerExport
A helper class to export raster data from a raster layer.
The RasterLayerExport object allows you to export a raster layer to a raster dataset by applying the spatial reference, extent, or the raster renderer information. Exporting a raster layer by imposing a raster renderer allows you to persist a raster dataset with properly stretched pixel values that you see from the raster layer in ArcMap.
Constructor Summary | |
---|---|
RasterLayerExport()
Constructs a RasterLayerExport using ArcGIS Engine. |
|
RasterLayerExport(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterLayerExport theRasterLayerExport = (RasterLayerExport) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IRasterDataset |
export(IWorkspace pWorkspace,
String newname,
String format)
Executes the raster layer exporting. |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
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 |
setLayerByRef(ILayer rhs1)
The layer to be exported (e.g. |
void |
setNoData(Object rhs1)
The NoData value for exported raster dataset. |
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. |
void |
setStorageDefByRef(IRasterStorageDef rhs1)
The raster storage definition for exported raster dataset. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public RasterLayerExport() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RasterLayerExport(Object obj) throws IOException
RasterLayerExport theRasterLayerExport = (RasterLayerExport) obj;
obj
to RasterLayerExport
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
setRasterLayerByRef
in interface IRasterLayerExport
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.public 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.
setExtent
in interface IRasterLayerExport
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.public 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.
setSize
in interface IRasterLayerExport
cx
- The cx (in)cy
- The cy (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setForce2RGB(boolean rhs1) throws IOException, AutomationException
setForce2RGB
in interface IRasterLayerExport
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
setSpatialReferenceByRef
in interface IRasterLayerExport
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.public 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" |
export
in interface IRasterLayerExport
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.public void setStorageDefByRef(IRasterStorageDef rhs1) throws IOException, AutomationException
The StorageDef method allows to specify the storage properties for the output dataset (most applicable for a geodatabase raster output) such as compression, pyramid resampling method etc.
setStorageDefByRef
in interface IRasterLayerExport2
rhs1
- A reference to a com.esri.arcgis.geodatabase.IRasterStorageDef (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLayerByRef(ILayer rhs1) throws IOException, AutomationException
setLayerByRef
in interface IRasterLayerExport3
rhs1
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNoData(Object rhs1) throws IOException, AutomationException
setNoData
in interface IRasterLayerExport3
rhs1
- A Variant (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 |