diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-01-09 12:16:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-05 10:56:44 +0100 |
commit | 61e981d30af776e6a64394b56110063e86f0bab0 (patch) | |
tree | 5decd678762fe49a661730395e66e840c81b3332 /ishtar_common/models_common.py | |
parent | 2d08645c3245c467ea55af70f5cd5dcc74e4b74a (diff) | |
download | Ishtar-61e981d30af776e6a64394b56110063e86f0bab0.tar.bz2 Ishtar-61e981d30af776e6a64394b56110063e86f0bab0.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( |