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

Round-trip GeoJSON foreign members #175

Merged
merged 3 commits into from
Dec 15, 2021
Merged

Round-trip GeoJSON foreign members #175

merged 3 commits into from
Dec 15, 2021

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Dec 14, 2021

Any concrete GeoJSON object type can now store and round-trip foreign members back to JSON. For example, we now preserve properties such as crs (common in ArcGIS output) and when (part of the GeoJSON-T extension). However, foreign members aren’t interpreted in any way, so if a nonstandard CRS is provided, this library’s various spatial functions will probably misinterpret the coordinates. This behavior is consistent with the GeoJSON specification, RFC 7946.

Fixes #174.

/cc @Udumft @macdrevx @SiarheiFedartsou

Any concrete GeoJSON object type can now store and round-trip foreign members back to JSON.
Sources/Turf/GeoJSON.swift Outdated Show resolved Hide resolved
Tests/TurfTests/GeoJSONTests.swift Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request. JS parity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Roundtrip foreign members
3 participants