Skip to content

Commit 3f943b3

Browse files
authored
v1.2.8
2 parents da5afac + d613372 commit 3f943b3

27 files changed

+237
-182
lines changed

img/es_logo.svg

Lines changed: 53 additions & 37 deletions
Loading

metadata.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name=Pobieracz danych GUGiK
77
qgisMinimumVersion=3.22
88
description=Pozwala na pobranie danych z zasobów GUGiK z interfejsu QGIS. EN: Allows user to download spatial data of Poland based on GUGiK's services.(Poland only)
99

10-
version=1.2.6
10+
version=1.2.8
1111

1212
author=EnviroSolutions Sp. z o.o.
1313
email=office@envirosolutions.pl
@@ -55,8 +55,12 @@ repository=https://github.com/envirosolutionspl/pobieracz_danych_gugik
5555
hasProcessingProvider=no
5656
# Uncomment the following line and add your changelog:
5757
changelog=
58-
Wersja 1.2.6
59-
* Modyfikacja powiadomień użytkownika dla dużych zapytań
58+
Wersja 1.2.8
59+
* Aktualizacja stopki wtyczki
60+
# Wersja 1.2.7
61+
# * Naprawa błędu pobierania danych
62+
# Wersja 1.2.6
63+
# * Modyfikacja powiadomień użytkownika dla dużych zapytań
6064
# Wersja 1.2.5
6165
# * Modyfikacja QGIS-feed
6266
# * Zmiana minimalnej wersji QGIS na 3.22

pobieracz_danych_gugik.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
mozaika_api, wizualizacja_karto_api, kartoteki_osnow_api, zdjecia_lotnicze_api, egib_api, mesh3d_api
3434

3535
"""Wersja wtyczki"""
36-
plugin_version = '1.2.6'
36+
plugin_version = '1.2.8'
3737
plugin_name = 'Pobieracz Danych GUGiK'
3838

3939

@@ -743,8 +743,8 @@ def las_fromLayer_btn_clicked(self):
743743
self.dockwidget.las_fromLayer_btn.setEnabled(False)
744744
for point in points:
745745
sub_list = las_api.getLasListbyPoint1992(point, self.dockwidget.las_evrf2007_rdbtn.isChecked())
746-
if not sub_list:
747-
continue
746+
if sub_list:
747+
las_list.extend(sub_list)
748748
las_list.extend(sub_list)
749749
self.filterLasListAndRunTask(las_list)
750750
else:
@@ -833,8 +833,14 @@ def filterLasList(self, lasList):
833833
if self.dockwidget.las_mhTo_lineEdit.text():
834834
lasList = [las for las in lasList if
835835
str(las.get('bladSredniWysokosci')) <= str(self.dockwidget.las_mhTo_lineEdit.text())]
836+
837+
# ograniczenie tylko do najnowszego
838+
if self.dockwidget.laz_newest_chkbx.isChecked():
839+
lasList = utils.onlyNewest(lasList)
840+
836841
return lasList
837842

843+
838844
def downloadLaFile(self, las, folder):
839845
"""Pobiera plik LAS"""
840846
QgsMessageLog.logMessage('start ' + las.url)

pobieracz_danych_gugik_base.ui

Lines changed: 142 additions & 114 deletions
Large diffs are not rendered by default.

tasks/downloadAerotriangulacjaTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def finished(self, result):
5252
to do GUI operations and raise Python exceptions here.
5353
result is the return value from self.run.
5454
"""
55-
if result and not self.exception:
55+
if result and self.exception:
5656
QgsMessageLog.logMessage('sukces')
5757
self.iface.messageBar().pushMessage(
5858
'Sukces',

tasks/downloadArchiwalnyBdotTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def finished(self, result):
3131
msgbox = QMessageBox(QMessageBox.Information, "Komunikat", "Nie znaleniono danych spełniających kryteria")
3232
msgbox.exec_()
3333

34-
if result and not self.exception:
34+
if result and self.exception:
3535
QgsMessageLog.logMessage('sukces')
3636
self.iface.messageBar().pushMessage(
3737
"Sukces",

tasks/downloadBdooTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run(self):
4040

4141
def finished(self, result):
4242

43-
if result and not self.exception:
43+
if result and self.exception:
4444
QgsMessageLog.logMessage('sukces')
4545
self.iface.messageBar().pushMessage(
4646
'Sukces',

tasks/downloadBdotTask.py

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

4343
def finished(self, result):
4444

45-
if result and not self.exception:
45+
if result and self.exception:
4646
QgsMessageLog.logMessage('sukces')
4747
self.iface.messageBar().pushMessage(
4848
'Sukces',

tasks/downloadEgibExcelTask.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def run(self):
5454
return True
5555

5656
def finished(self, result):
57-
if result and not self.exception:
57+
58+
if result and self.exception:
5859
QgsMessageLog.logMessage('sukces')
5960
self.iface.messageBar().pushMessage(
6061
'Sukces',

tasks/downloadKartotekiOsnowTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def finished(self, result):
5151
to do GUI operations and raise Python exceptions here.
5252
result is the return value from self.run.
5353
"""
54-
if result and not self.exception:
54+
if result and self.exception:
5555
QgsMessageLog.logMessage('sukces')
5656
self.iface.messageBar().pushMessage(
5757
'Sukces',

0 commit comments

Comments
 (0)