Layer to mask raster layer

Interprete a layer as a mask layer.

Usage:

  1. Open the algorithm from the processing toolbox.

  2. Select a vector layer which will function as your mask, then click run.

    ../../../../_images/layer_to_mask.png
  3. The output raster can be found under Rasters in the Data Source Panel

Parameters

Layer [layer]

A layer to be interpreted as a mask layer.

Grid [raster]

The target grid. Can be skipped if the source layer is a raster layer.

Outputs

Output mask raster layer [rasterDestination]

Raster file destination.

Command-line usage

>qgis_process help enmapbox:LayerToMaskRasterLayer:

----------------
Arguments
----------------

raster: Layer
    Argument type:  layer
    Acceptable values:
            - Path to a vector, raster or mesh layer
grid: Grid (optional)
    Argument type:  raster
    Acceptable values:
            - Path to a raster layer
outputMask: Output mask raster layer
    Argument type:  rasterDestination
    Acceptable values:
            - Path for new raster layer

----------------
Outputs
----------------

outputMask: <outputRaster>
    Output mask raster layer