Reclassify raster layer
This algorithm reclassifies a raster by assigning new class values based on a class mapping.
Parameters
- Raster layer [raster]
A raster layer to be reclassified.
- Class mapping [string]
A list of source to target class value mappings. E.g. to merge source values 1 and 2 into target value 1, and source values 3 and 4 into target value 2, use {1:1, 2:1, 3:2, 4:2}
- Categories [string]
A list of target categories in short notation: [(1, ‘Class A’, ‘#e60000’), (2, ‘Class B’, ‘#267300’)]
- No data value [number]
Value used to fill no data regions.
Default: 0
Outputs
- Output classification layer [rasterDestination]
Raster file destination.
Command-line usage
>qgis_process help enmapbox:ReclassifyRasterLayer
:
----------------
Arguments
----------------
raster: Raster layer
Argument type: raster
Acceptable values:
- Path to a raster layer
mapping: Class mapping
Argument type: string
Acceptable values:
- String value
categories: Categories (optional)
Argument type: string
Acceptable values:
- String value
noDataValue: No data value
Default value: 0
Argument type: number
Acceptable values:
- A numeric value
outputClassification: Output classification layer
Argument type: rasterDestination
Acceptable values:
- Path for new raster layer
----------------
Outputs
----------------
outputClassification: <outputRaster>
Output classification layer