Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default decoded GeoJSON to SRID 4326 (WGS 84) per the spec #219

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

s3cur3
Copy link
Contributor

@s3cur3 s3cur3 commented Aug 31, 2024

The GeoJSON spec indicates that all GeoJSON should be assumed to use the WGS 84 datum by default. We should be permissive and allow overriding that datum (as we did previously), but I think the correct behavior here is to make the datum explicit in our decoded Geo.Geometry.t() values.

This is a breaking change, but one which I expect to have quite little impact on users. (See the CHANGELOG.md for more.)

Resolves #129

Base automatically changed from ty/ensure-numeric-coords to master September 5, 2024 15:01
Copy link
Contributor

@axelson axelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change makes sense, and I agree that treating it as a new major release makes sense technically it is a breaking change.

The GeoJSON spec [indicates](https://tools.ietf.org/html/rfc7946#section-4) that all GeoJSON should be assumed to use the WGS 84 datum by default. We should be permissive and allow overriding that datum (as we did previously), but I think the correct behavior here is to make the datum explicit in our decoded `Geo.Geometry.t()` values.

This is a breaking change, but one which I expect to have quite little impact on users. (See the CHANGELOG.md for more.)

Resolves #129
@s3cur3 s3cur3 force-pushed the ty/infer-geojson-datum branch from 5bbcfed to b6f6139 Compare September 17, 2024 13:39
@s3cur3 s3cur3 merged commit 44ee1de into master Sep 17, 2024
21 checks passed
@s3cur3 s3cur3 deleted the ty/infer-geojson-datum branch September 17, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

GeoJSON default SRID not set
2 participants