diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-15 23:04:51 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:41:51 +0200 |
commit | 4b8d81d578bdd99a16ba82f911fc578d0d696b35 (patch) | |
tree | 45887413459dab52b646c9207832e51daa6100aa | |
parent | 523f49aea73ef213d2eb0dab0a43af8dce3699ce (diff) | |
download | Ishtar-4b8d81d578bdd99a16ba82f911fc578d0d696b35.tar.bz2 Ishtar-4b8d81d578bdd99a16ba82f911fc578d0d696b35.zip |
🐛 fix display_coordinates when no default srid is set
-rw-r--r-- | ishtar_common/models_common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c6b1316e4..38aa6fc51 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2393,7 +2393,8 @@ class GeoVectorData(Imported, OwnPerms): profile = get_current_profile() if profile.display_srs and profile.display_srs.srid: spatial_reference_system = profile.display_srs - srid = spatial_reference_system.srid + if spatial_reference_system: + srid = spatial_reference_system.srid if not srid: srid = 4326 if not spatial_reference_system: |