Skip to content

Commit 8ff6d0d

Browse files
8.0.9
1 parent f1713c4 commit 8ff6d0d

22 files changed

Lines changed: 16089 additions & 15932 deletions

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def description():
3434

3535

3636
def version():
37-
return 'Version 8.0.8 - Infinity'
37+
return 'Version 8.0.9 - Infinity'
3838

3939

4040
def icon():

core/utils.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def create_kml_from_map():
582582

583583

584584
# set RGB color composite
585-
def set_rgb_color_composite(composite=None):
585+
def set_rgb_color_composite(composite=None, bandset_number=None):
586586
if ((len(cfg.rgb_combo.currentText()) > 0
587587
and cfg.rgb_combo.currentText() != '-') or composite is not None):
588588
try:
@@ -592,15 +592,24 @@ def set_rgb_color_composite(composite=None):
592592
'set_rgb_color_composite rgb: %s' % str(composite)
593593
)
594594
if composite is not None:
595-
check = create_rgb_color_composite(composite)
595+
check = create_rgb_color_composite(composite, bandset_number)
596596
if check is True:
597597
if composite not in cfg.project_registry[cfg.reg_rgb_list]:
598598
cfg.project_registry[cfg.reg_rgb_list].append(
599599
composite
600600
)
601-
cfg.project_registry[cfg.reg_rgb_list] = list(
602-
set(cfg.project_registry[cfg.reg_rgb_list])
603-
)
601+
try:
602+
rgb_list = list(
603+
set(cfg.project_registry[cfg.reg_rgb_list])
604+
)
605+
rgb_list.remove('-')
606+
rgb_list.insert(0, '-')
607+
except Exception as err:
608+
str(err)
609+
rgb_list = list(
610+
set(cfg.project_registry[cfg.reg_rgb_list])
611+
)
612+
cfg.project_registry[cfg.reg_rgb_list] = rgb_list
604613
cfg.rgb_composite.rgb_table_from_list(
605614
cfg.project_registry[cfg.reg_rgb_list]
606615
)

docs/repository.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version = '1.0' encoding = 'UTF-8'?>
22
<plugins>
3-
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="8.0.8" plugin_id="284">
3+
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="8.0.9" plugin_id="284">
44
<description><![CDATA[The Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images.]]></description>
55
<about><![CDATA[Developed by Luca Congedo, the Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images. Search and download is available for Landsat, Sentinel-2 images. Several algorithms are available for the land cover classification. This plugin requires the installation of Remotior Sensus, GDAL, OGR, Numpy, SciPy, and Matplotlib. For more information please visit https://fromgistors.blogspot.com .]]></about>
6-
<version>8.0.8</version>
6+
<version>8.0.9</version>
77
<qgis_minimum_version>3.0.0</qgis_minimum_version>
88
<qgis_maximum_version>3.99.0</qgis_maximum_version>
99
<homepage><![CDATA[https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html]]></homepage>

i18n/models/semiautomaticclassificationplugin.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>sun_elevation</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>sun_elevation</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin_ar.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>Help</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin_de.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>Help</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin_el_GR.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>Help</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin_es.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>Help</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

i18n/semiautomaticclassificationplugin_fr.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,16 @@ p, li { white-space: pre-wrap; }
37423742
<source>Help</source>
37433743
<translation type="unfinished"></translation>
37443744
</message>
3745+
<message>
3746+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1287"/>
3747+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Band set date&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3748+
<translation type="unfinished"></translation>
3749+
</message>
3750+
<message>
3751+
<location filename="../ui/ui_semiautomaticclassificationplugin.ui" line="1322"/>
3752+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Root directory&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
3753+
<translation type="unfinished"></translation>
3754+
</message>
37453755
</context>
37463756
<context>
37473757
<name>SpectralSignaturePlot</name>

0 commit comments

Comments
 (0)