Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
import_export.py -- crs needs to be set when exporting to gis from ep…
Browse files Browse the repository at this point in the history
…anet
  • Loading branch information
PaulDudaRESPEC committed Jun 21, 2019
1 parent 52b3abf commit 788530f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ def export_epanet_to_gis(session, file_name, path_file, extension, driver_name,
if one_file:
if session.crs:
layer.setCrs(session.crs)
else:
session.crs = QgsCoordinateReferenceSystem('Unknown')
QgsVectorFileWriter.writeAsVectorFormat(layer, file_name, "utf-8", session.crs, driver_name)
print("saved " + file_name)

Expand Down

0 comments on commit 788530f

Please sign in to comment.