Wednesday, 25 November 2015

Can a GeoJSON GeometryCollection contain another Collection?


From a reading of the spec it seems that a GeometryCollection is a Geometry and can contain geometry objects? But I want to be sure that this is really allowed before I file a bug report.



Answer



Yes, it should be allowed. And I have tested it on OpenLayers at least, you can create a feature whose geometry is a GeometryCollection which contains another GeometryCollection by reading a geojson string (using OpenLayers.Format.GeoJSON object).


No comments:

Post a Comment