ThRasE is a powerful and flexible QGIS Python plugin for fast thematic raster editing. It utilizes a recode pixel table to modify multiple classes simultaneously using various tools, including pixels, lines, polygons, and freehand drawing. The plugin also features comprehensive navigation tools that enable systematic and thorough layer inspection, a critical aspect of maintaining data quality and accuracy in thematic mapping projects.
The main purpose of the plugin, but not limited to this, is to ensure the quality of thematic maps throughout editing and reclassification processes by enabling systematic visual inspection and comparison with reference data.
The thematic raster file to be edited must satisfy the following criteria:
ThRasE accepts two types of formats, depending on the pixel-value/color association:
Thematic with paletted or singleband pseudocolor on the fly:
You can use any raster (with byte or integer data type) with a specific style loaded (from a QGIS project or QML file) or applied symbology style on the fly in QGIS.
Supported symbology (render types):
Exact Interpolation
, with Equal interval
mode, and the number of classes must
match the layer classes)Important: The pixel values must be integers.
Tip: After configuring the style in QGIS, it’s recommended to save it as a
.qml
style file. Otherwise, QGIS saves it as a temporary file, and you’ll lose the pixel-value/color association if you restart QGIS and reload the raster. To save the style, go to theStyle
menu and clickSave as Default
. QGIS will save it in the same location as the raster with a.qml
extension.
Alternative: You can also save all layer styles by saving them in a QGIS project.
Thematic with embedded color table:
You can use any raster (with byte or integer data type) that has pixel-value/color associations through a color table
embedded in its metadata. You can view this using gdalinfo
or in the Symbology
tab in layer Properties
, where
it will be shown as Paletted
.
You can download an example of a valid thematic raster here.
New
tab.Warning: After each editing operation, the layer is saved (overwritten) on disk. If you want to preserve the original layer, make a backup copy before starting the editing process.
Thorough and systematic inspection of thematic rasters is crucial for ensuring data quality and accuracy. The navigation tools in ThRasE are designed to facilitate this process by:
ThRasE provides two powerful global editing options that allow you to apply changes to multiple areas simultaneously:
Apply to the Whole Image: This option applies the changes defined in the pixel recoding table to the entire thematic raster. This operation cannot be undone, so use with caution
Apply from Thematic File Classes: This option allows you to selectively apply changes to specific classes from another thematic file. Particularly useful for targeted updates based on another classification:
ThRasE integrates with the Continuous Change Detection (CCD) plugin to enhance your thematic raster editing workflow. The CCD plugin helps analyze trends and breakpoints of change over multi-year time series at specific locations through Google Earth Engine, while editing your thematic raster.
Note: To use this feature, you must have the CCD Plugin installed in QGIS.
Save State
and Load
buttons allow you to save or restore all settings and configurations, including:
Important: If you are using web or network layers (such as images from Google, Esri, Google Earth Engine, or XYZ), first save and load your QGIS project, and then load the ThRasE configuration file (
.yaml
).
ThRasE was developed, designed, and implemented by the Group of Forest and Carbon Monitoring System (SMByC), operated by the Institute of Hydrology, Meteorology and Environmental Studies (IDEAM) - Colombia.
Author and developer: Xavier C. Llano xavier.corredor.llano@gmail.com
Theoretical support, testing, and product verification: SMByC-PDI group
ThRasE is free/libre software and is licensed under the GNU General Public License.