Skip to content

Commit

Permalink
fix mac issues
Browse files Browse the repository at this point in the history
  • Loading branch information
warrieka committed Jan 25, 2019
1 parent 8cd7e49 commit dea575e
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 28 deletions.
1 change: 0 additions & 1 deletion geopunt4QgisAbout.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
import os.path
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import QPushButton, QDialog, QDialogButtonBox
Expand Down
15 changes: 2 additions & 13 deletions geopunt4QgisBatchGeoCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
import csv, webbrowser, os.path
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import (QDialog, QDialogButtonBox, QPushButton, QInputDialog,
Expand Down Expand Up @@ -363,19 +362,9 @@ def validateRows(self , rowIds):
try:
validAdres = self.am.findAdresSuggestions(municipality=muni, postalcode=pc, housenr=huisNr, streetname=adres)
except:
validAdres = None
validAdres = []

if validAdres and type( validAdres ) is str:
if (validAdres == 'time out') & (retry > 0):
retry -= 1 #minus 1 retry
continue
elif retry == 0:
self.ui.statusMsg.setText("<div style='color:red'>timeout na %s seconden and %s pogingen</div>" % (self.timeout , self.retrys))
return
self.ui.statusMsg.setText("<div style='color:red'>%s</div>" % validAdres)
return

elif validAdres and type( validAdres ) is list:
if type( validAdres ) is list:
if len(validAdres) > 1 and len( validAdres[0].split(',')) >= 2 and len(adres.strip()):
resultNR = validAdres[0].split(',')[0].split()[-1] if len(validAdres[0].split(',')[0].split()) > 0 else validAdres[0]
adresNR = adres.split(',')[0].split()[-1] if len(adres.split(',')[0].split()) > 0 else adres
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisDataCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication, QRegExp, QSortFilterProxyModel, QStringListModel
from qgis.PyQt.QtWidgets import QDialog, QPushButton, QDialogButtonBox, QCompleter, QInputDialog, QSizePolicy, QMessageBox
from qgis.PyQt.QtGui import QStandardItem, QStandardItemModel
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisElevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import (QDialog, QPushButton, QDialogButtonBox, QFileDialog, QSizePolicy,
QToolButton, QColorDialog, QInputDialog)
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisGipod.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from builtins import str
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import QDialog, QPushButton, QDialogButtonBox, QMessageBox
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisParcel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from builtins import str
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication, QStringListModel
from qgis.PyQt.QtWidgets import QDialog, QPushButton, QDialogButtonBox, QSizePolicy, QInputDialog, QCompleter
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisPoidialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import QDialog, QPushButton, QDialogButtonBox, QSizePolicy, QInputDialog, QTableWidgetItem
from qgis.PyQt.QtGui import QColor
Expand Down
1 change: 0 additions & 1 deletion geopunt4QgisSettingsdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtWidgets import QDialog, QPushButton, QDialogButtonBox, QFileDialog
from .ui_geopunt4QgisSettings import Ui_settingsDlg
Expand Down
1 change: 0 additions & 1 deletion geopunt4qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
from qgis.PyQt.QtCore import QSettings, QCoreApplication, QTranslator
from qgis.PyQt.QtWidgets import QMessageBox, QAction, QPushButton, QInputDialog
from qgis.PyQt.QtGui import QColor, QIcon
Expand Down
4 changes: 2 additions & 2 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ about="Geopunt voor QGIS" is een plugin voor de QGIS open source desktop GIS, di
- Search for Parcels
- Search for layers in the geopunt catalog

version=2.0.5
version=2.0.7
author=Kay Warrie
[email protected]

# end of mandatory metadata

# Optional items:
# Uncomment the following line and add your changelog entries:
changelog=Gemeentefusies 2019, waarschuwing indien metadata site niet bereikbaar.
changelog=Some apple osx specific errors fixed

# tags are comma separated with spaces allowed
tags=INSPIRE, GEOPUNT, GDI, VLAANDEREN, BRUSSEL, BELGIE, ADRES, ADRESSEN, AGIV, GEOLOKATIE, GEOCODE, WEBSERVICE, GRB, CRAB, FLANDERS, BELGIUM, BRUSSELS, LOCATION, ADDRESS, POINT OF INTEREST, POI, URBIS, GIPOD
Expand Down
1 change: 0 additions & 1 deletion tools/batchGeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
import os.path
from .geometry import geometryHelper
from qgis.PyQt.QtCore import QVariant
Expand Down
1 change: 0 additions & 1 deletion tools/elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* *
***************************************************************************/
"""
from __future__ import absolute_import
import os.path
import numpy as np
from qgis.PyQt.QtCore import QVariant
Expand Down
2 changes: 0 additions & 2 deletions tools/gipod.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* *
***************************************************************************/
"""
from future import standard_library
standard_library.install_aliases()
import os.path
from qgis.PyQt.QtCore import QVariant
from qgis.PyQt.QtWidgets import QFileDialog
Expand Down
2 changes: 1 addition & 1 deletion tools/versionChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def isUptoDate(self):
if cur < latest:
return False
else:
return True
return True

0 comments on commit dea575e

Please sign in to comment.