Does the order of geometries/features in GeometryCollection/FeatureCollection matter? There is a point in GeoJSON RFC (last point) about order but I could not get fully:
The word "Collection" in "FeatureCollection" and "GeometryCollection" does not have any significance for the semantics of array members. The "features" and "geometries" members, respectively, of these objects are standard ordered JSON arrays, not unordered sets.
Are following two geometries to be considered equal or not
{
"type":"GeometryCollection",
"geometries":[
{"type":"Point","coordinates":[1.0,1.0]},
{"type":"Point","coordinates":[2.0,2.0]}
]
}
{
"type":"GeometryCollection",
"geometries":[
{"type":"Point","coordinates":[2.0,2.0]},
{"type":"Point","coordinates":[1.0,1.0]}
]
}
If collection should be ordered list then what geometry operation on collection may give different result in case geometries' order is reversed?
By the nature of digital representations, collections are inherently ordered by the underlying storage mechanism. Two collections whose difference is only this order are spatially equal and will return equivalent results in any geometric-defined operations.– user30184 Jan 21 '18 at 18:09