Convert vector to raster

From AWF-Wiki
Revision as of 01:31, 26 November 2017 by Hfuchs (Talk | contribs)

Jump to: navigation, search
  1. Click the Add raster layer QGIS 2.0 addrast.png and select the file C:/OSGeo4W64/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T.tif.
  2. Click Open, the raster layer appears on the QGIS canvas.
  3. Open the raster calculator and apply the following formula:

Qgis rastercalc zero.png

  1. Define path and name for the single band output layer.
  2. Click on the ‘OK-button’.
  3. 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.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export