This document is archived and information here might be outdated.  Recommended version.


IReclassOp.Reclass Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IR > IReclassOp Interface > IReclassOp.Reclass Method
ArcGIS Developer Help

IReclassOp.Reclass Method

Reclassifies (or changes) the values of the input cells of a raster by using a remap table.

[Visual Basic .NET]
Public Function Reclass ( _
    ByVal GeoDataset As IGeoDataset, _
    ByVal remapTable As ITable, _
    ByVal fromField As String, _
    ByVal toField As String, _
    ByVal OutField As String, _
    ByVal retainMissingValues As Boolean _
) As IGeoDataset
[C#]
public IGeoDataset Reclass (
    IGeoDataset GeoDataset,
    ITable remapTable,
    string fromField,
    string toField,
    string OutField,
    bool retainMissingValues
);
[C++]
HRESULT Reclass(
  IGeoDataset* GeoDataset,
  ITable* remapTable,
  BSTR fromField,
  BSTR toField,
  BSTR OutField,
  VARIANT_BOOL retainMissingValues
);
[C++]
Parameters
GeoDataset [in]

GeoDataset is a parameter of type IGeoDataset* remapTable [in]
remapTable is a parameter of type ITable* fromField [in]
fromField is a parameter of type BSTR toField [in]
toField is a parameter of type BSTR OutField [in]
OutField is a parameter of type BSTR retainMissingValues [in]
retainMissingValues is a parameter of type bool

Product Availability

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

Remarks

geoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

The values contained in this Raster will be the values to be reclassified.

remapTable

A table used to identify the input cell values, or range of values, to be reclassified and their respective reclassified output values.  

"From" and "To" fields define the input cell ranges to be reclassified and the "Out" field is used to specify a new reclassified output value.  These fields are used in the fromField, toField and outField parameters.

A sample table format is,

From      To            Out
45.00 45.00 40 55.00 55.00 50 60.00 60.00 0 1.00 20.00 20 20.00 40.00 30 70.00 100.00 0 0.00 0.00 99

fromField

Specifies the field in the remapTable for the start of each range to be used to correlate the values on the input Raster that will be reclassed.  For example, the "From" field in the above sample table.

toField

Specifies the field in the remapTable for the end of each range to be used to correlate the values on the input Raster that will be reclassed.  For example, the "To" field in the above sample table.

outField

Specifies the field in the remapTable that is to be used to change or reclass the input values, or range of values, to the values contained in the outField.  For example, the "Out" field in the above sample table.

retainMissingValues

Defines the manner in which values not present in the remapTable will be handled

If True, then if any cell location on the input Raster contains a value that is not present or reclassed in the remap table, the value should remain intact and be written for that location to the output Raster.

If False, then if any cell location on the input Raster contains a value that is not present or reclassed in the remap table, the value will be reclassed to NoData for that location on the output Raster.

 

Note:

See Also

IReclassOp Interface