Skip to content

Commit

Permalink
Merge pull request #60 from GispoCoding/56-get-line-layer-crs-from-tr…
Browse files Browse the repository at this point in the history
…ajectorylayer-in-as-line-layer

Set crs to new line layer
  • Loading branch information
msorvoja authored Nov 4, 2024
2 parents f9d8838 + e39f10d commit 9b738aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fvh3t/core/trajectory_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def create_trajectories(self) -> None:
self.__trajectories = tuple(trajectories)

def as_line_layer(self) -> QgsVectorLayer | None:
# TODO: can this be a memory layer?
line_layer = QgsVectorLayer("LineString?crs=3067", "Line Layer", "memory")
line_layer = QgsVectorLayer("LineString", "Line Layer", "memory")
line_layer.setCrs(self.__layer.crs())

line_layer.startEditing()

Expand Down

0 comments on commit 9b738aa

Please sign in to comment.