Hi,
I noticed a strange thing with Spatialite 5.0.1 today:
when calling GeomFromGeoJSON for a 2.5D GeometryCollection, it returns null for some reason.
The individual LineStrings can be read without problems when not having the GeometryCollection around it.
Also, the GeometryCollection seems to parse fine if I remove all the Z coordinates.
Is there any workaround for this?/am I missing something?
Thanks
Adrian
Example call:
SELECT AsText(GeomFromGeoJSON('
{
"type": "GeometryCollection",
"geometries": [
{
"type": "LineString",
"coordinates": [
[
9.05618268003033,
47.8205085371546,
501.0
],
[
9.05592594023042,
47.8202476728863,
501.0
],
[
9.05589510917812,
47.8202621648322,
501.2
]
]
},
{
"type": "LineString",
"coordinates": [
[
9.05601815334443,
47.8203413635765,
501.2
],
[
9.0559909008558,
47.8203542702468,
501.3
]
]
}
]
}
'));