use minimum_rotated_rectangle instead of bounding box for non-detailed geometry
This commit is contained in:
parent
9806472083
commit
fadbabf9bf
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class GeometryMixin(SerializableMixin):
|
|||
return None
|
||||
if detailed_geometry:
|
||||
return format_geojson(smart_mapping(self.geometry), rounded=False)
|
||||
return format_geojson(smart_mapping(box(*self.geometry.bounds)), rounded=False)
|
||||
return format_geojson(smart_mapping(self.geometry.minimum_rotated_rectangle), rounded=False)
|
||||
|
||||
def get_shadow_geojson(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue