From b59dd1be1b3fa3fd549dd7da5aaf249205cd93bd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Jul 2022 16:45:03 +0200 Subject: GeoVectorData: fix round --- ishtar_common/models_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common') 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: -- cgit v1.2.3