Skip to content

Commit

Permalink
fix: re-add epsg to VectorLayer
Browse files Browse the repository at this point in the history
This probably got lost in a rebase and is now re-applied
  • Loading branch information
koebi committed Dec 21, 2023
1 parent 121434b commit 21a5338
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 21a5338

Please sign in to comment.