Class fraction layer from categorized vector layer
Rasterize a categorized vector layer into class fractions. Categories are rasterized at a x10 finer resolution and aggregated to class-wise fractions at destination resolution. This approach leads to fractions that are accurate to the percent.
Usage:
Start the algorithm from the Processing Toolbox panel.
Select the vector layer containing your categorised polygons and the raster layer serving as your target grid, then click run.
View the result in the map viewer. Each class is represented as a separate band.
Parameters
- Categorized vector layer [vector]
A categorized vector layer to be rasterized.
- Grid [raster]
The target grid.
- Minimum pixel coverage [%] [number]
Exclude all pixel where (polygon) coverage is smaller than given threshold.
Default: 0
Outputs
- Output class fraction layer [rasterDestination]
Raster file destination.
Command-line usage
>qgis_process help enmapbox:ClassFractionLayerFromCategorizedVectorLayer
:
----------------
Arguments
----------------
categorizedVector: Categorized vector layer
Argument type: vector
Acceptable values:
- Path to a vector layer
grid: Grid
Argument type: raster
Acceptable values:
- Path to a raster layer
coverage: Minimum pixel coverage [%]
Default value: 0
Argument type: number
Acceptable values:
- A numeric value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
outputFraction: Output class fraction layer
Argument type: rasterDestination
Acceptable values:
- Path for new raster layer
----------------
Outputs
----------------
outputFraction: <outputRaster>
Output class fraction layer