GeoQuerySet.geojson(**kwargs)
Deprecated since version 1.9: Use the AsGeoJSON function instead.
Availability: PostGIS, SpatiaLite
Attaches a geojson attribute to every model in the queryset that contains the GeoJSON representation of the geometry.
| Keyword Argument | Description |
|---|---|
precision | It may be used to specify the number of significant digits for the coordinates in the GeoJSON representation – the default value is 8. |
crs | Set this to True if you want the coordinate reference system to be included in the returned GeoJSON. |
bbox | Set this to True if you want the bounding box to be included in the returned GeoJSON. |
Please login to continue.