As a followup to my previous question (Converting SimpleGeo Places GeoJSON file to shapefile), I am now struggling with what I perceive might be an ogr2ogr "memory" limitation, but I cannot be sure. I have successfully converted the SimpleGeo dump files into proper geojson files (verified that are directly readable in QGIS).
Now I want to convert this data to SHP or other formats (SQLite, PostGIS). I am running the following command with success on smaller files (where "places_fr.gejson" has a file size of ~118MB):
ogr2ogr -f "ESRI Shapefile" places_fr.shp places_fr.geojson
When I attempt to run this same exact command with a geojson file that is 340MB, ogr2ogr crashes in one of two ways:
- "lh_table_new: calloc failed" (first attempt)
- Windows throws an "ogr2ogr.exe has stopped working. Please close the program." (subsequent attempts)
I am running the ogr command via FWTools in a Windows 7 environment dual core with 8GB of installed RAM (4GB available, 12GB virtual memory available). Is there a memory limit to ogr2ogr converting these datasets? I have also tried converting into SQLite with the same results, so I don't think it is an SHP conversion issue. Thanks.


