Hi,
ogr2ogr is repeatedly failing for me with the following error when I try to
import a large geojson (5gb) to postgres. The geojson itself was created by
ogr2ogr from a ESRI gdb file.
I would appreciate any pointers for workarounds. I only found 1] which
indicates that I may have to manually(using custom script) split the
geojson file.

1]
https://gis.stackexchange.com/questions/16340/alternatives-to-ogr2ogr-for-loading-large-geojson-files-to-postgis
 ogr2ogr  -f "PostgreSQL" -append -update -nlt GEOMETRY -t_srs EPSG:4326
PG:"dbname=mydb  tables=dummy" vol2/myuser/delme/a.json'  -nln tmpx -lco
FID=gid -lco PRECISION=NO

ERROR 1: GeoJSON parsing error: buffer size overflow (at offset 0)
ERROR 4: Failed to read GeoJSON data
FAILURE:
Unable to open datasource `/vol2/myuser/delme/a.json' with the following
drivers.
  -> PCIDSK
  -> JPEG2000
  -> PDF
  -> ESRI Shapefile
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to