Convert vector to raster
From AWF-Wiki
- Click the Add raster layer and select the file C:/OSGeo4W64/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T.tif.
- Click Open, the raster layer appears on the QGIS canvas.
- Open the raster calculator and apply the following formula:
- Define path and name for the single band output layer.
- Click on the ‘OK-button’.
- In the processing toolbar, type Translate into the search field to find the GDAL\OGR --> Translate (Convert format) tool and open it.
- Type in the textbox Nodata value: 0
- Unfold the Advanced parameters and change the output data format to unsigned 16bit integer): -ot UInt16
- Click the button ... of Converted to select path and name of output file.
- Click Run.