Mac ターミナル上で、geojson > topojson への変換を行いたいです。
それぞれのバージョンは、
topojson 2.0
npm 1.4.14
node.js v0.10.29
e-Stat http://e-stat.go.jp/SG2/eStatGIS/page/download.html
からダウンロードしたシェープファイル.shpを
ogr2ogrでgeojsonに変換し、
さらに、それをtopojsonに変換するため、
$geo2topo geojson.json > topojson.json
すると、エラーが出ます。
Promise.all(commander.args.map(read)).then(write).catch(abort); ^ ReferenceError: Promise is not defined at Object.<anonymous> (~/.nodebrew/node/v0.10.29/lib/node_modules/topojson/node_modules/topojson-server/bin/geo2topo:25:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3
他に何かインストールする必要があるのか、
コマンドの書き方が間違っているのか、
分かりません。
geojson > topojson変換するために、
対処法をご教示いただきたいです。
宜しくお願いします!
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。