Skip to content

Commit 81ec277

Browse files
7.5.6
1 parent 86d03e7 commit 81ec277

26 files changed

Lines changed: 26621 additions & 26183 deletions

__init__.py

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

4343

4444
def version():
45-
return 'Version 7.5.5 - Matera'
45+
return 'Version 7.5.6 - Matera'
4646

4747

4848
def icon():

core/utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3671,16 +3671,19 @@ def reclassifyRaster(self, gdalBandList, rasterSCPArrayfunctionBand, columnNumbe
36713671
# raster array
36723672
o = rasterSCPArrayfunctionBand.flatten()
36733673
a = rasterSCPArrayfunctionBand.ravel()
3674+
# logger
3675+
cfg.utls.logToFile(str(__name__) + '-' + str(cfg.inspectSCP.stack()[0][3])+ ' ' + cfg.utls.lineOfCode(), 'reclassifyRaster ' )
36743676
for i in functionBandArgument:
36753677
# create condition
36763678
try:
36773679
o[a==int(i[0])] = int(i[1])
36783680
except Exception as err:
36793681
try:
3680-
#exp = 'cfg.np.where(' + i[0].replace(cfg.variableName, 'rasterSCPArrayfunctionBand') + ', int(i[1]), o)'
3681-
exp = 'o[' + i[0].replace(cfg.variableName, 'a') + '] = int(i[1])'
3682+
exp = 'o[' + i[0].replace(functionVariableList, 'a') + '] = int(i[1])'
36823683
exec(exp)
36833684
except Exception as err:
3685+
# logger
3686+
cfg.utls.logToFile(str(__name__) + '-' + str(cfg.inspectSCP.stack()[0][3])+ ' ' + cfg.utls.lineOfCode(), 'error ' + str(err) )
36843687
return 'No'
36853688
return o.reshape(rasterSCPArrayfunctionBand.shape[0], rasterSCPArrayfunctionBand.shape[1])
36863689

@@ -4130,7 +4133,8 @@ def noBlocksCalculation(self, rasterSCPArrayfunctionBand, functionBandArgument,
41304133
f = functionBandArgument
41314134
cfg.utls.logToFile(str(__name__) + '-' + str(cfg.inspectSCP.stack()[0][3])+ ' ' + cfg.utls.lineOfCode(), 'f ' + str(f) )
41324135
# replace numpy operators
4133-
f = cfg.utls.replaceNumpyOperators(f) # logger
4136+
f = cfg.utls.replaceNumpyOperators(f)
4137+
# logger
41344138
cfg.utls.logToFile(str(__name__) + '-' + str(cfg.inspectSCP.stack()[0][3])+ ' ' + cfg.utls.lineOfCode(), 'f ' + str(f) )
41354139
# perform operation
41364140
o = eval(f)

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="7.5.5" plugin_id="284">
3+
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="7.5.6" 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 ASTER, GOES, Landsat, MODIS, Sentinel-1, Sentinel-2, and Sentinel-3 images. Several algorithms are available for the land cover classification. This plugin requires the installation of GDAL, OGR, Numpy, SciPy, and Matplotlib. Some tools require also the installation of SNAP (ESA Sentinel Application Platform). For more information please visit https://fromgistors.blogspot.com .]]></about>
6-
<version>7.5.5</version>
6+
<version>7.5.6</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: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin_ar.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin_de.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin_el_GR.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin_es.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

i18n/semiautomaticclassificationplugin_fr.ts

Lines changed: 254 additions & 234 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)