From 2f2eef448eb06848b74772c3339932de34cf3058 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 4 Sep 2023 16:12:29 +0200 Subject: 🐛 fix update of cached coordinates on precision change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c5c550b5a..6fb0d2fbc 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2540,6 +2540,7 @@ class GeoVectorData(Imported, OwnPerms): srid = spatial_reference_system.srid if not srid: srid = 4326 + if not spatial_reference_system: q = SpatialReferenceSystem.objects.filter(srid=srid) if q.count(): spatial_reference_system = q.all()[0] -- cgit v1.2.3