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,
IGeoDataset** outGeoDataset
);
[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 VARIANT_BOOL outGeoDataset [out, retval]outGeoDataset is a parameter of type IGeoDataset
Product Availability
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,
|
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:
- To reclassify individual values, it is possible to use a
simple table of two field items, for example a "From" and an
"Out" field . The first item identifies the value to
reclassify, and the other item the value to assign it to. In
this case, the "toField" parameter is set to the same as the
"fromField". The value to assign to the output is
"outField".
- To reclassify ranges of values, the table must have items defining the start and end of each range, along with the value to assign the range. For example, "From", "To", and "Out" respectively. The item defining the start of the range is the "fromField" and the value defining the end of the range is the "toField". The value to assign to the output is "outField".