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

Add support for GeoJSON foreign members #128

Open
tukez opened this issue Apr 10, 2024 · 1 comment
Open

Add support for GeoJSON foreign members #128

tukez opened this issue Apr 10, 2024 · 1 comment

Comments

@tukez
Copy link

tukez commented Apr 10, 2024

Could this library support GeoJSON foreign members? https://datatracker.ietf.org/doc/html/rfc7946#section-6.1

In short, Feature, FeatureCollection and Geometry should allow custom fields of any type in addition to the fields defined in the spec. This would allow this library to work with GeoJSON extensions.

As implementation, a field: foreignMembers: Map<String, JsonElement>, would be enough.

@P72B
Copy link
Contributor

P72B commented Oct 11, 2024

You can still put your foreignMembers into the properties field.

I see a danger in having foreignMembers allowed in this lib because other geojson libs/parser will may break during schema validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants