summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-11 16:45:03 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:21:26 +0100
commitb59dd1be1b3fa3fd549dd7da5aaf249205cd93bd (patch)
tree7c675ed2f22d2a303339eb9b56abd3232e01a844 /ishtar_common
parentdf72edf2527546b31d3a0c530e8b635cca9b63ca (diff)
downloadIshtar-b59dd1be1b3fa3fd549dd7da5aaf249205cd93bd.tar.bz2
Ishtar-b59dd1be1b3fa3fd549dd7da5aaf249205cd93bd.zip
GeoVectorData: fix round
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/models_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index 2fb0d40f6..69cdeba94 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -2298,7 +2298,7 @@ class GeoVectorData(Imported, OwnPerms):
coordinates = [x, y, point.z]
if not rounded:
return coordinates
- return [round(coord, rounded) for coord in coordinates]
+ return [round(coord or 0, rounded) for coord in coordinates]
def get_coordinates_from_polygon(self, rounded=5, srid: int = None):
if self.multi_polygon: