javascript - How to avoid TopoJSON memory errors -
i'm attempting create topojson file of school districts in united states. i've laid out workflow follows:
- download , unzip individual tiger shape files census bureau (24 esd, 19 ssd, 56 usd)
- batch merge these 99 files ogr2ogr
- convert merged shapefile geojson
- convert geojson topojson (ideally add state boundaries file here well)
step 4 causing me problems, using following batch script:
call topojson ^ -o sds11_topo.json ^ -p name ^ --simplify-proportion .1 ^ --id-property geoid ^ -- ^ esds11.json ^ ssds11.json ^ usds11.json pause
but presented following fatal memory error:
fatal error: call_and_retry_0 allocation failed - process out of memory
this has left me @ bit of loss on how continue, appreciate if advise on better workflow or ways better manage memory when converting topojson. thank you.
use node --max_old_space_size=999 topojson.js ...
increase memory available node.js.
if you're using node.js binaries, you'll want 64-bit binaries. 32-bit ones restricted 1gb. https://code.google.com/p/v8/issues/detail?id=847
Comments
Post a Comment