I wanted to test your script, but i get an error while trying to parse a geojson:
Command: ./cli.js Barcelona.osm.geojson > barcelona.obj
Output:
/tmp/geojson2obj/feature-to-geojson.js:124
geom.coordinates[0][0][2] ? function(cb) { cb(); } : function(cb) {
^
TypeError: Cannot read property '2' of undefined
at /tmp/geojson2obj/feature-to-geojson.js:124:35
at transformFunc (/tmp/geojson2obj/feature-to-geojson.js:114:13)
at featureToGeoJson (/tmp/geojson2obj/feature-to-geojson.js:117:5)
at /tmp/geojson2obj/index.js:8:9
at /tmp/geojson2obj/node_modules/async/dist/async.js:2516:9
at replenish (/tmp/geojson2obj/node_modules/async/dist/async.js:1011:17)
at /tmp/geojson2obj/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/tmp/geojson2obj/node_modules/async/dist/async.js:1041:24)
at /tmp/geojson2obj/node_modules/async/dist/async.js:1046:16
at Object.reduce (/tmp/geojson2obj/node_modules/async/dist/async.js:2515:5)
If you want the geojson that i'm using:
wget https://download.bbbike.org/osm/bbbike/Barcelona/Barcelona.osm.geojson.xz
unxz Barcelona.osm.geojson.xz
I wanted to test your script, but i get an error while trying to parse a geojson:
Command:
./cli.js Barcelona.osm.geojson > barcelona.objOutput:
If you want the geojson that i'm using: