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

Feature.id only String #65

Open
hylkevds opened this issue Apr 7, 2023 · 2 comments
Open

Feature.id only String #65

hylkevds opened this issue Apr 7, 2023 · 2 comments

Comments

@hylkevds
Copy link

hylkevds commented Apr 7, 2023

RFC7946 states that Feature.id can be String or Number. Currently GeoJSON-Jackson forces the id to be a String.

Is there a specific reason for this?

@grundid
Copy link
Member

grundid commented Apr 12, 2023

This library is based on the original 2008 GeoJson specification. At this point no specific type was defined for id properties. (https://geojson.org/geojson-spec.html#feature-objects)

@hylkevds
Copy link
Author

That sounds like even more of a reason to not limit it to only String :)

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