Translate categorized raster layerΒΆ
Translates categorized raster layer into target grid. Resampling is done via a two-step majority voting approach. First, the categorized raster layer is resampled at x10 finer resolution, and subsequently aggregated back to the target resolution using majority voting. This approach leads to pixel-wise class decisions that are accurate to the percent.
Parameters
- Categorized raster layer [raster]
- A categorized raster layer to be resampled.
- Grid [raster]
- The target grid.
- Majority voting [boolean]
Whether to use majority voting. Turn off to use simple nearest neighbour resampling, which is much faster, but may result in highly inaccurate decisions.
Default: True
Outputs
- Output categorized raster layer [rasterDestination]
- Raster file destination.
Command-line usage
>qgis_process help enmapbox:TranslateCategorizedRasterLayer
:
----------------
Arguments
----------------
categorizedRaster: Categorized raster layer
Argument type: raster
Acceptable values:
- Path to a raster layer
grid: Grid
Argument type: raster
Acceptable values:
- Path to a raster layer
majorityVoting: Majority voting
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
outputTranslatedCategorizedRaster: Output categorized raster layer
Argument type: rasterDestination
Acceptable values:
- Path for new raster layer
----------------
Outputs
----------------
outputTranslatedCategorizedRaster: <outputRaster>
Output categorized raster layer