IRasterCalcUniqueValues Interface

Provides access to members that controls calculation of unique values.

Members

Name Description
Method AddFromRaster Adds values from a given band of a Raster.
Method AddFromRasterAsDecimal Adds decimal values truncated to a given precision from a given band of a Raster.
Method AddFromTable Adds values of a field of a table.

IRasterCalcUniqueValues.AddFromRaster Method

Adds values from a given band of a Raster.

Public Sub AddFromRaster ( _
    ByVal pRaster As IRaster, _
    ByVal iBand As Integer, _
    ByVal pUniqueValues As IUniqueValues _
)
public void AddFromRaster (
    IRaster pRaster,
    int iBand,
    IUniqueValues pUniqueValues
);

IRasterCalcUniqueValues.AddFromRasterAsDecimal Method

Adds decimal values truncated to a given precision from a given band of a Raster.

Public Sub AddFromRasterAsDecimal ( _
    ByVal pRaster As IRaster, _
    ByVal iBand As Integer, _
    ByVal precision As Double, _
    ByVal pUniqueValues As IUniqueValues _
)
public void AddFromRasterAsDecimal (
    IRaster pRaster,
    int iBand,
    double precision,
    IUniqueValues pUniqueValues
);

IRasterCalcUniqueValues.AddFromTable Method

Adds values of a field of a table.

Public Sub AddFromTable ( _
    ByVal pCursor As ICursor, _
    ByVal iValueField As Integer, _
    ByVal iCountField As Integer, _
    ByVal pUniqueValues As IUniqueValues _
)
public void AddFromTable (
    ICursor pCursor,
    int iValueField,
    int iCountField,
    IUniqueValues pUniqueValues
);

Classes that implement IRasterCalcUniqueValues

Classes Description
RasterCalcUniqueValues A helper class for calculating raster unique values.

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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.