Skip to content

Latest commit

 

History

History
218 lines (155 loc) · 6.28 KB

edit_raster_tab.rst

File metadata and controls

218 lines (155 loc) · 6.28 KB

Edit raster

This tab allows for the direct editing of pixel values in a raster. Only pixels beneath ROI polygons or vector polygons are edited.

Warning

The input raster is directly edited; it is recommended to create a backup copy of the input raster before using this tool in order to prevent data loss.

This tool can rapidly edit large rasters, especially when editing polygons are small, because pixel values are edited directly.

Tip

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

Tool symbol and name Description
:guilabel:`Select the classification` input_list select a raster (already loaded in QGIS)
reload refresh layer list
Tool symbol and name Description
radiobutton :guilabel:`Edit values using ROI polygons` if checked, raster is edited using temporary ROI polygons in the map
radiobutton :guilabel:`Edit values using a vector` input_list if checked, raster is edited using all the polygons of selected vector
reload refresh layer list
Tool symbol and name Description
radiobutton :guilabel:`Use the value field of the vector` input_list if checked, raster is edited using the selected vector in :guilabel:`Edit values using a vector`) and the polygon values of selected vector field
radiobutton :guilabel:`Use constant value` input_number if checked, raster is edited using the selected constant value
radiobutton :guilabel:`Use expression` input_text

if checked, raster is edited according to the entered expression; the expression must contain one or more where;

accepted variables are: "raster" representing the input raster value and "vector" representing the vector value if selected; the following example expression where("raster" == 1, 2, "raster") is already entered, which sets 2 where "raster" equals 1, and leaves unchanged the values where "raster" is not equal to 1;

this expression only edit pixels that are beneath the input vector polygons

Tool symbol and name Description
undo_edit_raster undo last edit of raster
:guilabel:`Script` script_tool add this function to the :ref:`script_tab`
:guilabel:`RUN` run run this function