[gdal-dev] geojson size matters?

Jaak Laineste jaak at nutiteq.com
Sat Oct 1 12:47:59 PDT 2016


I have a big geojson (4.83G) and try to convert it using ogr2ogr (GDAL 2.1.1, released 2016/07/07, Mac), but after 6 minutes of processing it terminates with:

ERROR 1: GeoJSON parsing error: continue (at offset -1)
ERROR 4: Failed to read GeoJSON data
FAILURE:
Unable to open datasource `geonames.geojson’ with the following drivers.
…

Also I was not able to open same file with QGIS (it tried to consume 50+G RAM and crashed). The file is here: https://dl.dropboxusercontent.com/u/3573333/tmp/geonames.geojson.bz2

I have similar smaller file from same proces, with size just below 2G and that one works fine. So it looks like some 2G or 4G size issue.

Is there maximum size for readable GeoJSON files?


Jaak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161001/a24851d2/attachment.html>


More information about the gdal-dev mailing list