3.4.6.5. Edit raster (complete interface)

_images/edit_raster_tab.png

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. It is loaded only if the Simplified interface is not enabled.

Avertissement

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.

Astuce

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

3.4.6.5.1. Edit raster

Tool symbol and name

Description

Select the classification input_list

select a raster (already loaded in QGIS)

reload

refresh layer list

3.4.6.5.2. Edit raster values

Tool symbol and name

Description

radiobutton Edit values using ROI polygons

if checked, raster is edited using temporary ROI polygons in the map

radiobutton Edit values using a vector input_list

if checked, raster is edited using all the polygons of selected vector

reload

refresh layer list

3.4.6.5.3. Edit options

Tool symbol and name

Description

radiobutton Use the value field of the vector input_list

if checked, raster is edited using the selected vector in Edit values using a vector) and the polygon values of selected vector field

radiobutton Use constant value input_number

if checked, raster is edited using the selected constant value

radiobutton 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

3.4.6.5.4. Edit raster values

Tool symbol and name

Description

undo_edit_raster

undo last edit of raster

Script script_tool

add this function to the Script (complete interface)

RUN run

run this function