Opened 9 days ago
Last modified 8 days ago
#35989 closed Bug
GeoJSON serializer producing invalid output (crs attribute) — at Version 2
Reported by: | Jeremy Thompson | Owned by: | |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The built-in GeoJSON serializer is producing invalid GeoJSON. The serialized output has a section like:
"crs": {"type": "name", "properties": {"name": "EPSG:4326"}}
However, according to the GeoJSON spec the crs
attribute was removed from the spec in August of 2016 (ref: https://datatracker.ietf.org/doc/html/rfc7946#appendix-B.1)
This is causing issues when trying to use GeoJSON as the intermediary data format for passing data to other libraries (e.g. Leaflet https://leafletjs.com considers GeoJSON with the crs
attribute as invalid and fails to parse it).
More information in the forum discussion here: https://forum.djangoproject.com/t/geojson-serializer-producing-invalid-output-crs/37097
Change History (2)
comment:1 by , 9 days ago
Type: | Uncategorized → Bug |
---|
comment:2 by , 9 days ago
Description: | modified (diff) |
---|