-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Don't encode crs in GeoJSON #26499
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
Don't encode crs in GeoJSON #26499
Conversation
Please shorten commit message. You can just move the second sentence into next line. |
acad5c9
to
8ab5c10
Compare
Done |
Sorry, I accidentally closed the PR. Opening again |
Please remove the following period from the commit title. https://trino.io/development/process.html#pull-request-and-commit-guidelines- |
lib/trino-geospatial-toolkit/src/main/java/io/trino/geospatial/GeometryUtils.java
Show resolved
Hide resolved
8ab5c10
to
cf87e8c
Compare
lib/trino-geospatial-toolkit/src/test/java/io/trino/geospatial/GeometryUtilsTest.java
Outdated
Show resolved
Hide resolved
lib/trino-geospatial-toolkit/src/test/java/io/trino/geospatial/GeometryUtilsTest.java
Outdated
Show resolved
Hide resolved
cf87e8c
to
01c8b2c
Compare
The crs attribute is no longer allowed in GeoJSON per https://datatracker.ietf.org/doc/html/rfc7946#section-4.
01c8b2c
to
20f4d8a
Compare
Applied small nits and going to merge soon |
Great, thanks! |
Description
Don't encode crs in GeoJSON. The crs attribute is no longer allowed in GeoJSON: https://datatracker.ietf.org/doc/html/rfc7946#section-4. It is also pointless in trino since geometries are stripped of srid. It will always be 0 (unknown).
Additional context and related issues
Split from #26451
Release notes
I don't think a release note is required. Compliant GeoJSON consumers should ignore the crs attribute. For completeness a note could be added.
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: