Skip to content

Commit 4dd8da5

Browse files
committed
Update/renaming "Apply Within Selected Classes" in global editing
1 parent 1e9f383 commit 4dd8da5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

docs/global_editing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ This option applies the changes defined in the pixel recoding table to the entir
1515
This operation cannot be undone, so use with caution.
1616
```
1717

18-
## Apply from Thematic Classes
18+
## Apply Within Selected Classes
1919

2020
```{image} images/global_editing_classes.webp
2121
:width: 60%
2222
:align: center
2323
```
2424
<br>
2525

26-
ThRasE enables you to apply recode pixel table changes selectively within areas defined by classes from another categorical raster file. This capability is crucial when corrections need to respect existing spatial boundaries or land management units. For example, you might need to reclassify forest types only within protected areas, correct agricultural classes exclusively in irrigated zones, or refine land cover classifications within specific administrative boundaries. This feature applies more precise and contextually appropriate post-classification corrections to the entire thematic raster.
26+
ThRasE enables you to apply recode pixel table changes selectively within areas defined by selected classes from another categorical raster file. This capability is crucial when corrections need to respect existing spatial boundaries or land management units. For example, you might need to reclassify forest types only within protected areas, correct agricultural classes exclusively in irrigated zones, or refine land cover classifications within specific administrative boundaries. This feature applies more precise and contextually appropriate post-classification corrections to the entire thematic raster.
2727

2828
```{warning}
2929
The categorical raster file used to define constraint areas must have the same projection, pixel size, and extent as your thematic map

gui/apply_from_thematic_classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def table_item_clicked(self, table_item):
278278

279279
@wait_process
280280
def apply(self):
281-
"""Apply changes to the entire thematic map using a different thematic classes map"""
281+
"""Apply changes within selected classes from another thematic raster"""
282282

283283
from ThRasE.thrase import ThRasE
284284

@@ -476,7 +476,7 @@ def apply(self):
476476
ThRasE.dialog.registry_widget.update_registry()
477477

478478
self.MsgBar.pushMessage(
479-
"DONE: Changes were successfully applied using the selected thematic classes",
479+
"DONE: Changes were successfully applied within selected classes",
480480
level=Qgis.Success, duration=10)
481481

482482
# finish the edition

gui/main_dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ def apply_from_thematic_classes_dialog(self):
12461246
self.apply_from_thematic_classes.setup_gui()
12471247
if self.apply_from_thematic_classes.exec_():
12481248
self.MsgBar.pushMessage(
1249-
"DONE: Changes in recode pixels table were successfully applied using thematic file classes",
1249+
"DONE: Changes in recode pixels table were successfully applied within selected classes",
12501250
level=Qgis.Success, duration=10)
12511251

12521252
@pyqtSlot()

ui/apply_from_thematic_classes.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
14-
<string>ThRasE - Apply from thematic classes</string>
14+
<string>ThRasE - Apply within selected classes</string>
1515
</property>
1616
<layout class="QVBoxLayout" name="verticalLayout">
1717
<property name="spacing">
@@ -54,7 +54,7 @@
5454
<item>
5555
<widget class="QLabel" name="label_2">
5656
<property name="text">
57-
<string>This tool applies the changes set in the recode pixels table to the current thematic layer being edited in the main dialog, but only in the areas within all the selected classes from another thematic map chosen here.</string>
57+
<string>This tool applies the changes set in the recode pixels table to the current thematic layer being edited in the main dialog, but only in the areas within all the selected classes from another thematic raster chosen here.</string>
5858
</property>
5959
<property name="alignment">
6060
<set>Qt::AlignJustify|Qt::AlignVCenter</set>

ui/main_dialog.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,10 +1279,10 @@ Note: For better performance, close the registry during active editing</string>
12791279
<cursorShape>PointingHandCursor</cursorShape>
12801280
</property>
12811281
<property name="toolTip">
1282-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Apply the changes from the recode pixels table only to areas within the selected classes from a different thematic map&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
1282+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Apply the changes from the recode pixels table only to areas within the selected classes from a different thematic raster&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
12831283
</property>
12841284
<property name="text">
1285-
<string>From thematic file classes</string>
1285+
<string>Apply within selected classes</string>
12861286
</property>
12871287
<property name="icon">
12881288
<iconset>

0 commit comments

Comments
 (0)