diff options
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 7 |
1 files changed, 3 insertions, 4 deletions
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] |