opendatalab-de / geojson-jackson

GeoJson POJOs for Jackson - serialize and deserialize objects with ease
http://blog.opendatalab.de
Apache License 2.0
263 stars 94 forks source link

Feature.id only String #65

Open hylkevds opened 1 year ago

hylkevds commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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