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.


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


Output class fraction layer [rasterDestination]

Raster file destination.

Command-line usage

>qgis_process help enmapbox:ClassFractionLayerFromCategorizedVectorLayer:


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
outputFraction: Output class fraction layer
    Argument type:  rasterDestination
    Acceptable values:
            - Path for new raster layer


outputFraction: <outputRaster>
    Output class fraction layer