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:

  1. download , unzip individual tiger shape files census bureau (24 esd, 19 ssd, 56 usd)
  2. batch merge these 99 files ogr2ogr
  3. convert merged shapefile geojson
  4. 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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -