com.esri.arcgis.datasourcesraster
Class RasterColormapToRGBConverter

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterColormapToRGBConverter
All Implemented Interfaces:
IRasterColormapToRGBConversion, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterColormapToRGBConverter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterColormapToRGBConversion

A helper class for converting between colormap to RGB raster.

Description

Remarks

RasterColormapToRGB object performs converstion between a raster dataset that contains a colormap and a three-band raster dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterColormapToRGBConverter()
          Constructs a RasterColormapToRGBConverter using ArcGIS Engine.
RasterColormapToRGBConverter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterColormapToRGBConverter theRasterColormapToRGBConverter = (RasterColormapToRGBConverter) obj;
 
Method Summary
 IName colormapToRGB(IRasterDataset pInRasterDataset, IWorkspace pOutWorkspace, String outName, String format)
          Convert a colormap raster dataset to an RGB raster dataset.
 IRaster createRGBRaster(IRasterDataset pRasterDataset)
          Creates a RGB muitlband raster from a a colormap raster dataset.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 IName rGBRasterToColormap(IRaster pInRaster, IWorkspace pOutWorkspace, String outName, String format)
          Convert an RGB raster to a colormap raster dataset.
 IName rGBToColormap(IRasterDataset pInRasterDataset, IWorkspace pOutWorkspace, String outName, String format)
          Convert an RGB raster dataset to a colormap 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

RasterColormapToRGBConverter

public RasterColormapToRGBConverter()
                             throws IOException,
                                    UnknownHostException
Constructs a RasterColormapToRGBConverter using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterColormapToRGBConverter

public RasterColormapToRGBConverter(Object obj)
                             throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterColormapToRGBConverter theRasterColormapToRGBConverter = (RasterColormapToRGBConverter) obj;

Construct a RasterColormapToRGBConverter using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterColormapToRGBConverter.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

rGBToColormap

public IName rGBToColormap(IRasterDataset pInRasterDataset,
                           IWorkspace pOutWorkspace,
                           String outName,
                           String format)
                    throws IOException,
                           AutomationException
Convert an RGB raster dataset to a colormap raster dataset.

Remarks

The parameter pOutWorkspace can only be a raster workspace, which is a file based workspace.

The format string can be "IMAGINE Image", "TIFF", "GRID", or "BMP" only.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
rGBToColormap in interface IRasterColormapToRGBConversion
Parameters:
pInRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rGBRasterToColormap

public IName rGBRasterToColormap(IRaster pInRaster,
                                 IWorkspace pOutWorkspace,
                                 String outName,
                                 String format)
                          throws IOException,
                                 AutomationException
Convert an RGB raster to a colormap raster dataset.

Remarks

The parameter pOutWorkspace can only be a raster workspace, which is a file based workspace.

The format string can be "IMAGINE Image", "TIFF", "GRID", or "BMP" only.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
rGBRasterToColormap in interface IRasterColormapToRGBConversion
Parameters:
pInRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

colormapToRGB

public IName colormapToRGB(IRasterDataset pInRasterDataset,
                           IWorkspace pOutWorkspace,
                           String outName,
                           String format)
                    throws IOException,
                           AutomationException
Convert a colormap raster dataset to an RGB raster dataset.

Description

The parameter pOutWorkspace can only be a raster workspace, which is a file based workspace.

The format string can be "IMAGINE Image", "TIFF", "GRID", or "BMP" only.

Remarks

The parameter pOutWorkspace can only a raster workspace, which is a file based workspace.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
colormapToRGB in interface IRasterColormapToRGBConversion
Parameters:
pInRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRGBRaster

public IRaster createRGBRaster(IRasterDataset pRasterDataset)
                        throws IOException,
                               AutomationException
Creates a RGB muitlband raster from a a colormap raster dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
createRGBRaster in interface IRasterColormapToRGBConversion
Parameters:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRaster
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.