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 geometry should be constrained to Geometry type #57

Open jasonCodesAway opened 4 years ago

jasonCodesAway commented 4 years ago

Currently Feature.java has a private GeoJsonObject geometry;. This type should instead be private Geometry geometry; per section 3.2 of the geojson spec:

A Feature object has a member with the name "geometry". The value of the geometry member SHALL be either a Geometry object as defined above or, in the case that the Feature is unlocated, a JSON null value.