7

I have noticed that saving a GeoDataFrame with CRS as GeoJSON do not assign CRS to the file. While saving the same GDF as GeoPackage does.

Same happens in QGIS. Export to GeoJSON and there will be no CRS in the GeoJSON.

Does GeoJSON not support storing CRS information?

1 Answer 1

10

The obsolete GeoJSON 2008 specification has a "crs" member to define a coordinate reference system (including projected).

GDAL/OGR has a RFC7946 layer creation option, with default NO (thus GeoJSON 2008) to save CRS info. Setting RFC7946=YES changes several aspects of the output file, including on-the-fly reprojection to EPSG:4326.

The current GeoJSON specification RFC 7946 does not normally allow a CRS specification, as the 2D coordinates are assumed to be in degrees of longitude and latitude. Exceptions are permitted for alternative coordinate reference systems if "all involved parties have a prior arrangement".

2
  • 1
    The current specification allows different crs but it does not define how to do it: "However, where all involved parties have a prior arrangement, alternative coordinate reference systems can be used without risk of data being misinterpreted." See also ogc.org/projects/groups/featgeojsonswg.
    – user30184
    Commented Aug 6, 2021 at 6:03
  • I think all involved parties would be better arranging to use a data format suitable to modern GIS needs. Commented Oct 24, 2023 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.