diff --git a/ORStools/gui/directions_gui.py b/ORStools/gui/directions_gui.py index 7be42386..98ed671b 100644 --- a/ORStools/gui/directions_gui.py +++ b/ORStools/gui/directions_gui.py @@ -103,10 +103,7 @@ def get_parameters(self): layer = self.dlg.avoidpolygon_dropdown.currentLayer() if layer: transformer = transform.transformToWGS(layer.sourceCrs()) - # FIXME: bug in GPKG driver I think: - # https://github.com/GIScience/orstools-qgis-plugin/issues/114 - # Wrote to dev mailing list - geom = layer.getGeometry(0) or layer.getGeometry(1) + geom = next(layer.getFeatures()) geom.transform(transformer) self.options['avoid_polygons'] = json.loads(geom.asJson()) diff --git a/ORStools/metadata.txt b/ORStools/metadata.txt index bff5be6f..b2384b65 100644 --- a/ORStools/metadata.txt +++ b/ORStools/metadata.txt @@ -3,13 +3,14 @@ name=ORS Tools qgisMinimumVersion=3.0 description=openrouteservice routing, isochrones and matrix calculations for QGIS -version=1.2.2 +version=1.2.3 author=GIS • OPS UG & HeiGIT gGmbH email=nils@gis-ops.com about=ORS Tools provides access to most of the functions of openrouteservice.org, based on OpenStreetMap. The tool set includes routing, isochrones and matrix calculations, either interactive in the map canvas or from point files within the processing framework. Extensive attributes are set for output files, incl. duration, length and start/end locations. -changelog=2020/02/20 v1.2.2 workaround for possible QGIS geopackage bug (#114): backwards-compatible and future-proof +changelog=2020/02/22 v1.2.3 wasn't a bug, implemented Nyall's suggestion: https://github.com/qgis/QGIS/issues/34606#issuecomment-589901410 + 2020/02/20 v1.2.2 workaround for possible QGIS geopackage bug (#114): backwards-compatible and future-proof 2019/12/02 v1.2.1 fix isochrone layer bug for empty IDs (#113), fix isochrones for local setups (#112) 2019/08/19 v1.2.0 Implement avoid_polygons parameter (#79) 2019/08/19 v1.1.1 Update metadata, bcs repository moved to GIScience