tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
694 stars 113 forks source link

out of memory and windows #71

Closed bubnenkoff closed 7 years ago

bubnenkoff commented 7 years ago

I am getting out of memory error. I tried: osmtogeojson --ndjson --max_old_space_size=8192 luxembourg-latest.osm.pbf > 1232.json

but it did not help. But there is which that seems not Windows command: osmtogeojson --ndjson --max_old_space_size=8192which osmtogeojsonluxembourg-latest.osm.pbf > 1232.json

Is there any way to get work it on Windows?

tyrasd commented 7 years ago

The max old space size parameter must be passed to the node command (which is implicitly called when running osmtogeojson directly). Try something like:

node --max_old_space_size=8192 c:\………\npm\node_modules\osmtogeojson\osmtogeojson luxembourg-latest.osm.pbf > 1232.json

(you must replace the path with the actual one on your system)