Skip to content

Commit dbca0ce

Browse files
7.10.11
1 parent 0e1cf9f commit dbca0ce

7 files changed

Lines changed: 22743 additions & 22740 deletions

File tree

__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.10.10 - Matera'
45+
return 'Version 7.10.11 - Matera'
4646

4747

4848
def icon():

dock/scpdock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self):
4343
cfg.uidc.undo_save_Button.setEnabled(False)
4444
cfg.uidc.redo_save_Button.setEnabled(False)
4545
# rubber band
46-
cfg.rbbrBnd = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, False)
46+
cfg.rbbrBnd = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, cfg.qgisCoreSCP.QgsWkbTypes.LineGeometry)
4747
cfg.rbbrBnd.setColor(cfg.QtGuiSCP.QColor(0,255,255))
4848
cfg.rbbrBnd.setWidth(2)
4949
cfg.mrctrVrtc = []
@@ -2543,7 +2543,7 @@ def addHighlightPolygon(self, sourceLayer, ID):
25432543
# clear canvas
25442544
def clearCanvas(self):
25452545
cfg.lastVrt = []
2546-
cfg.rbbrBnd.reset(True)
2546+
cfg.rbbrBnd.reset()
25472547
for m in cfg.mrctrVrtc:
25482548
cfg.cnvs.scene().removeItem(m)
25492549
del m
@@ -2555,7 +2555,7 @@ def clearCanvas(self):
25552555

25562556
# clear ROI point canvas
25572557
def clearROICanvas(self):
2558-
cfg.rbbrBnd.reset(True)
2558+
cfg.rbbrBnd.reset()
25592559
for m in self.ROIVrtc:
25602560
cfg.cnvs.scene().removeItem(m)
25612561
del m

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.10.10" plugin_id="284">
3+
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="7.10.11" 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.10.10</version>
6+
<version>7.10.11</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>

maininterface/clipmultiplerasters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def addRubberBandPolygon(self, pointUL, pointLR):
4747
self.clearCanvasPoly()
4848
except:
4949
pass
50-
self.rbbrBndPol = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, 2)
50+
self.rbbrBndPol = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, cfg.qgisCoreSCP.QgsWkbTypes.LineGeometry)
5151
pointF = cfg.QtCoreSCP.QPointF()
5252
polF = cfg.QtGuiSCP.QPolygonF()
5353
pointF.setX(pointUL.x())
@@ -74,7 +74,7 @@ def addRubberBandPolygon(self, pointUL, pointLR):
7474

7575
# clear canvas
7676
def clearCanvasPoly(self):
77-
self.rbbrBndPol.reset(True)
77+
self.rbbrBndPol.reset()
7878
cfg.cnvs.refresh()
7979

8080
# clip multiple rasters action

maininterface/downloadproducts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DownloadProducts:
4141
def __init__(self):
4242
# check all bands
4343
self.checkAll = 'No'
44-
self.rbbrBndPol = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, 2)
44+
self.rbbrBndPol = cfg.qgisGuiSCP.QgsRubberBand(cfg.cnvs, cfg.qgisCoreSCP.QgsWkbTypes.LineGeometry)
4545
cfg.ui.dateEdit_to.setDate(cfg.QDateSCP.currentDate())
4646
cfg.ui.dateEdit_from.setDate(cfg.QDateSCP.currentDate().addDays(-365))
4747

@@ -99,7 +99,7 @@ def addRubberBandPolygon(self, pointUL, pointLR):
9999

100100
# clear canvas
101101
def clearCanvasPoly(self):
102-
self.rbbrBndPol.reset(True)
102+
self.rbbrBndPol.reset()
103103
cfg.cnvs.refresh()
104104

105105
# Activate pointer

metadata.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Semi-Automatic Classification Plugin
33
qgisMinimumVersion=3.00
44
description=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.
5-
version=7.10.10
5+
version=7.10.11
66
about=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 .
77

88
author=Luca Congedo
@@ -14,6 +14,9 @@ icon=semiautomaticclassificationplugin.png
1414
; start of optional metadata
1515
changelog=
1616

17+
7.10.11
18+
-fixed QgsRubberBand issue with new QGIS versions
19+
1720
7.10.10
1821
-fixed issue with file name in Clip multiple raster
1922
-fixed French translation issue

0 commit comments

Comments
 (0)