From 21a5338430d0d8ba7221ace7f208627ce2662869 Mon Sep 17 00:00:00 2001 From: Jakob Schnell Date: Thu, 21 Dec 2023 12:12:07 +0100 Subject: [PATCH] fix: re-add epsg to VectorLayer This probably got lost in a rebase and is now re-applied --- ORStools/gui/ORStoolsDialog.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 871ff727..b506d0d1 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -448,9 +448,7 @@ def _save_vertices_to_layer(self): ] if len(items) > 0: - crs = QgsCoordinateReferenceSystem("EPSG:4326") - point_layer = QgsVectorLayer("Point?crs=4326&field=ID:integer", "Vertices", "memory") - point_layer.setCrs(crs) + point_layer = QgsVectorLayer("point?crs=epsg:4326&field=ID:integer", "Vertices", "memory") point_layer.updateFields() for idx, x in enumerate(items): coords = x.split(":")[1]