From 6e626e92a01722dd2814e8827753ed0e1a653f9b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 8 Aug 2022 23:11:09 +0200 Subject: Import: manage CSV geo data --- ishtar_common/models_common.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index cea327e13..c88c71c35 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2374,10 +2374,9 @@ class GeoVectorData(Imported, OwnPerms): if profile.display_srs and profile.display_srs.srid: srid = profile.display_srs.srid if not srid: - x, y = point_2d.x, point_2d.y - else: - point = point_2d.transform(srid, clone=True) - x, y = point.x, point.y + srid = 4326 + point = point_2d.transform(srid, clone=True) + x, y = point.x, point.y if rounded: return [round(x, rounded), round(y, rounded)] return [x, y] -- cgit v1.2.3