[gdal-dev] GDAL reads ESRI MultiLinestring as simple Linestring
Jukka Rahkonen
jukka.rahkonen at maanmittauslaitos.fi
Sat Jul 23 00:35:32 PDT 2016
Hi,
I was reading the documentation of ESRI json from
http://resources.arcgis.com/en/help/rest/apiref/geometry.html and this
example seems to be about a MultiLinestring with two parts:
A 2D polyline
{
"paths" : [
[ [-97.06138,32.837], [-97.06133,32.836], [-97.06124,32.834],
[-97.06127,32.832] ],
[ [-97.06326,32.759], [-97.06298,32.755] ]
],
"spatialReference" : {"wkid" : 4326}
}
However, GDAL reads the geometry as a single Linestring when I bake the
paths inside a json document. I wrote the document by hand and I am not sure
if it is correct but at least GDAL reads it:
{
"geometryType": "esriGeometryPolyline",
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"fields": [
],
"features": [
{
"attributes": {
},
"geometry": {
"paths" : [
[ [-97.06138,32.837], [-97.06133,32.836], [-97.06124,32.834],
[-97.06127,32.832] ],
[ [-97.06326,32.759], [-97.06298,32.755] ]
],
"spatialReference" : {"wkid" : 4326}
}
}
]
}
-Jukka Rahkonen-
More information about the gdal-dev
mailing list