Closed Debakel closed 2 years ago
@Debakel qa checks are failing, can you please enclose commit type in square brackets
Please check commit message guidelines
@devkapilbansal @auvipy Thanks for reviewing! I just updated the commit message. QA checks should succeed now. Could you approve the workflow run?
The GeoJSON specification allows GeoJSON objects of all types (Feature, Point, Polygon, ...) to contain a bounding box.
https://github.com/openwisp/django-rest-framework-gis/pull/57 already added support for bounding boxes for Features.
This patch adds bounding box support for all remaining types and introduces a new argument
auto_bbox
on theGeometryField
.Example
Model:
Serializer:
Serialization: