com.esri.arcgis.datasourcesraster
Class RasterCalcUniqueValues

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

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

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 getMaxUniqueValueCount()
          The maximum number of unique values.
 int hashCode()
          the hashcode for this object
 void setMaxUniqueValueCount(int pMaxCount)
          The maximum number of unique values.
 
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.

getMaxUniqueValueCount

public int getMaxUniqueValueCount()
                           throws IOException,
                                  AutomationException
The maximum number of unique values.

Product Availability

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

Specified by:
getMaxUniqueValueCount in interface IRasterCalcUniqueValues2
Returns:
The pMaxCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxUniqueValueCount

public void setMaxUniqueValueCount(int pMaxCount)
                            throws IOException,
                                   AutomationException
The maximum number of unique values.

Product Availability

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

Specified by:
setMaxUniqueValueCount in interface IRasterCalcUniqueValues2
Parameters:
pMaxCount - The pMaxCount (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.