com.esri.arcgis.datasourcesraster
Class RasterCalcUniqueValues

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

public class RasterCalcUniqueValues
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterCalcUniqueValues

A helper class for calculating raster unique values.

Remarks

RasterCalcUniqueValues is used to obtain the unique values from one or a collection of raster datasets and use these "unified" unique values to render many rasters or some raster datasets in a raster catalog.

RasterCalcUniqueValues creates UniqueValues object, which is used in RasterUniqueValueRenderer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterCalcUniqueValues()
          Constructs a RasterCalcUniqueValues using ArcGIS Engine.
RasterCalcUniqueValues(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCalcUniqueValues theRasterCalcUniqueValues = (RasterCalcUniqueValues) obj;
 
Method Summary
 void addFromRaster(IRaster pRaster, int iBand, IUniqueValues pUniqueValues)
          Adds values from a given band of a Raster.
 void addFromRasterAsDecimal(IRaster pRaster, int iBand, double precision, IUniqueValues pUniqueValues)
          Adds decimal values truncated to a given precision from a given band of a Raster.
 void addFromTable(ICursor pCursor, int iValueField, int iCountField, IUniqueValues pUniqueValues)
          Adds values of a field of a table.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
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

RasterCalcUniqueValues

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

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

RasterCalcUniqueValues

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

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

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

addFromTable

public void addFromTable(ICursor pCursor,
                         int iValueField,
                         int iCountField,
                         IUniqueValues pUniqueValues)
                  throws IOException,
                         AutomationException
Adds values of a field of a table.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addFromTable in interface IRasterCalcUniqueValues
Parameters:
pCursor - A reference to a com.esri.arcgis.geodatabase.ICursor (in)
iValueField - The iValueField (in)
iCountField - The iCountField (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFromRaster

public void addFromRaster(IRaster pRaster,
                          int iBand,
                          IUniqueValues pUniqueValues)
                   throws IOException,
                          AutomationException
Adds values from a given band of a Raster.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addFromRaster in interface IRasterCalcUniqueValues
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFromRasterAsDecimal

public void addFromRasterAsDecimal(IRaster pRaster,
                                   int iBand,
                                   double precision,
                                   IUniqueValues pUniqueValues)
                            throws IOException,
                                   AutomationException
Adds decimal values truncated to a given precision from a given band of a Raster.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addFromRasterAsDecimal in interface IRasterCalcUniqueValues
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
precision - The precision (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.