3.4.3.15. Vector to raster

_images/vector_to_raster_tab.jpg

vector_to_raster_tool Vector to raster

This tab allows for the conversion of a vector to raster format.

3.4.3.15.1. Convert vector to raster

  • Select the vector input_list: select a vector already loaded in QGIS;
  • reload: refresh layer list;
  • checkbox Use the value field of the vector input_list: if checked, the selected field is used as attribute for the conversion; pixels of the output raster have the same values as the vector attribute;
  • checkbox Use constant value input_number: if checked, the polygons are converted to raster using the selected constant value;
  • Select the type of conversion input_list: select the type of conversion between Center of pixels and All pixels touched:
    • Center of pixels: during the conversion, vector is compared to the reference raster; output raster pixels are attributed to a polygon if pixel center is within that polygon;
    • All pixels touched: during the conversion, vector is compared to the reference raster; output raster pixels are attributed to a polygon if pixel touches that polygon;
  • Select the reference raster input_list: select a reference raster; pixels of the output raster have the same size and alignment as the reference raster;
  • reload: refresh layer list;
  • checkbox Same extent as reference raster: the output raster will have the same extent as reference raster;
  • BATCH batch_tool: add this function to the Batch;
  • RUN run: choose the output destination and start the conversion to raster;