com.esri.arcgis.datasourcesraster
Interface IRasterCalcUniqueValues

All Superinterfaces:
Serializable
All Known Subinterfaces:
IRasterCalcUniqueValues2
All Known Implementing Classes:
RasterCalcUniqueValues

public interface IRasterCalcUniqueValues
extends Serializable

Provides access to members that controls calculation of unique values.

Superseded By

IRasterCalcUniqueValues2

Remarks

The two methods operate on the input UniqueValues object and accumulate new unique values to it. So you must co-create the UniqueValues object before calling the two methods.

Product Availability

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


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.
 

Method Detail

addFromTable

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

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

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

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

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

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.