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 pRasterDataset, IWorkspace pWorkspace, String name, String format)
          Converts a colormap raster dataset to a RGB raster dataset.
 IRaster createRGBRaster(IRasterDataset pRasterDataset)
          Creates a RGB multiband raster from 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 pRaster, IWorkspace pWorkspace, String name, String format)
          Converts a RGB raster to a colormap raster dataset.
 IName rGBToColormap(IRasterDataset pRasterDataset, IWorkspace pWorkspace, String name, String format)
          Converts a 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 pRasterDataset,
                           IWorkspace pWorkspace,
                           String name,
                           String format)
                    throws IOException,
                           AutomationException
Converts a 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:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (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 pRaster,
                                 IWorkspace pWorkspace,
                                 String name,
                                 String format)
                          throws IOException,
                                 AutomationException
Converts a 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:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (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 pRasterDataset,
                           IWorkspace pWorkspace,
                           String name,
                           String format)
                    throws IOException,
                           AutomationException
Converts a colormap raster dataset to a 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:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (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 multiband raster from 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.