diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-01-09 12:16:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:40:54 +0200 |
commit | 9e2cedc18a4edfe280be76d698d5523f98506de8 (patch) | |
tree | f6ffd2f603eca1800724fd0e5da44e8d184bd33e /ishtar_common/models_common.py | |
parent | c96c21da408852a284cc182654e545c1f6a25e89 (diff) | |
download | Ishtar-9e2cedc18a4edfe280be76d698d5523f98506de8.tar.bz2 Ishtar-9e2cedc18a4edfe280be76d698d5523f98506de8.zip |
✨ sheet map: display buffer - 🐛 sheet map: fix 2d point display
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c8686d7b3..e4438be43 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2430,9 +2430,9 @@ class GeoVectorData(Imported, OwnPerms): if dim == 3: coordinates.append(point.z) else: - if self.point_2d and dim == 2: + if self.point_2d: geom = self.point_2d - elif self.point_3d and dim == 3: + elif self.point_3d: geom = self.point_3d elif self.multi_points: geom = self.multi_points.centroid @@ -2639,6 +2639,8 @@ class GeoVectorData(Imported, OwnPerms): round(coord, precision) for coord in feature["geometry"]["coordinates"] ] + if self.buffer: + feature["properties"]["buffer"] = self.buffer geojson_dct["features"] = features try: geojson_dct["link_template"] = simple_link_to_window(self).replace( |