Skip to content

Latest commit

 

History

History
198 lines (146 loc) · 6.86 KB

File metadata and controls

198 lines (146 loc) · 6.86 KB

Vector to raster (complete interface)

This tab allows for the conversion of a vector (polygon) to raster format. It is loaded only if the :guilabel:`Simplified interface` is not enabled.

Tip

Information about APIs of this tool in Remotior Sensus at this link .

Convert vector to raster

Tool symbol and name Description
:guilabel:`Select the vector` input_list select a vector already loaded in QGIS
reload refresh layer list
radiobutton :guilabel:`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
radiobutton :guilabel:`Use constant value` input_number if checked, the polygons are converted to raster using the selected constant value
:guilabel:`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
:guilabel:`Pixel size` input_text set the size of pixel of output raster
checkbox :guilabel:`Minimum extent` if checked, the output raster has the minimum vector extent; otherwise, output extent is the same as the :guilabel:`Select the reference raster` input_list
:guilabel:`Select the type of conversion` input_list
select the type of conversion among:
  • :guilabel:`pixel_center`: 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
  • :guilabel:`all_touched`: during the conversion, vector is compared to the reference raster; output raster pixels are attributed to a polygon if pixel touches that polygon
  • :guilabel:`area_based`: during the conversion, output raster pixels are attributed based on area proportion of polygons
:guilabel:`Area precision` input_text for :guilabel:`area_based` method, the higher the value, the higher is the precision in the calculation of area proportion (and the time required for calculation)
checkbox :guilabel:`Use value as NoData` input_number if checked, set a value for NoData pixels
:guilabel:`Script` script_tool add this function to the :ref:`script_tab`
:guilabel:`RUN` run run this function