-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Labels
Description
On serializing a GeometryCollection field using a GeoFeatureModelSerializer I seem to get some invalid GeoJSON:
{"id":14,"type":"Feature","geometry":{"type":"GeometryCollection","coordinates":[[[[-62.59810000000004,-3.2129700000000065],[-62.01231356237314,-1.7987564376269107],[-60.598100000000045,-1.2129699999999999],[-59.183886437626946,-1.7987564376269007],[-58.59810000000004,-3.21297],[-59.18388643762694,-4.627183562373094],[-60.59810000000004,-5.21297],[-62.01231356237313,-4.627183562373098],[-62.59810000000004,-3.2129700000000065]]]]},"properties":{"name":"Manacapuru","platform_type":"Ground station","platform_name":null,"region":"SA","public":false}}
Rather than the expected (from GeometryCollection.json):
{"type": "GeometryCollection", "geometries": [{"type": "Polygon", "coordinates": [[[-62.59810000000004, -3.2129700000000065], [-62.01231356237314, -1.7987564376269107], [-60.598100000000045, -1.2129699999999999], [-59.183886437626946, -1.7987564376269007], [-58.59810000000004, -3.21297], [-59.18388643762694, -4.627183562373094], [-60.59810000000004, -5.21297], [-62.01231356237313, -4.627183562373098], [-62.59810000000004, -3.2129700000000065]]]}]}
Are geometry collections supported?