====== Mapshaper ====== Git:[[https://github.com/mbloch/mapshaper|mbloch / mapshaper]]\\ Web版:[[https://mapshaper.org/]]\\  ※ [[サーバソフトウェア:mapshaper:Web版の使い方|Web版の使い方]] Mapshaper は JavaScript で書かれた Shapefile、GeoJSON、TopoJSON、CSV およびその他のいくつかのデータ形式を編集するためのソフトウェアです。 [[http://nlftp.mlit.go.jp/ksj/index.html|国土交通省]]などで入手したシェープファイル(shape)は、そのままではデータサイズが大きいため、データを簡略化したり、GoogleMap などの地図サービスで使うため GeoJSON 形式に変換するのに使います。 ===== インストール ===== Mapshaper をサーバにインストールするには、[[プログラム言語:node.js|Node.js]] が必要になります。\\ # -g をつけるとプロジェクトごとではなく、グローバルインストールになる npm install -g mapshaper ===== コマンド ===== * [[サーバソフトウェア:mapshaper:Ramer-Douglas-Peuckerアルゴリズムで簡略化&GeoJSON形式で出力|Ramer-Douglas-Peucker アルゴリズムで簡略化&GeoJSON形式で出力]] 各コマンドの解説は GitHub の wiki に掲載されています。 * [[https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool|Introduction to the Command Line Tool]] * [[https://github.com/mbloch/mapshaper/wiki/Command-Reference|Command Reference]]