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

Fix for GeometryCollection not being a valid geometry #22

Closed robpc closed 9 years ago

robpc commented 9 years ago

GeometryCollection was not properly marshalling when placed in a Feature. Changes added the right annotation.

Example of a JSON message that was not marshaling correctly before the change:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "GeometryCollection",
        "geometries": [
          {
            "type": "Point",
            "coordinates": [100.0, 0.0]
          }
        ]
      }
    }
  ]
}
grundid commented 9 years ago

Thank you