-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,35 @@ | |
[スマートマップデータテンプレート(Excel)](https://docs.google.com/spreadsheets/d/1IQKC5dRNlWaINs0BkmYamaLQIgX6kQuLLzN-nQryBlU/edit?usp=sharing) を読み込んで、[smartcity-smartmap-v2](https://github.com/geolonia/smartcity-smartmap-v2) で使用する、メニュー用設定ファイルと、ベクトルタイルを生成する CLI ツールです。 | ||
|
||
|
||
## 使い方 | ||
## 要件 | ||
- GDAL(ogr2ogr)、Tippecanoe、nkf | ||
|
||
```bash | ||
$ brew install gdal tippecanoe nkf | ||
``` | ||
|
||
## 使い方 | ||
|
||
```bash | ||
$ npm install | ||
$ ./main.sh <input_directory> <config_file_excel> [CRS] | ||
``` | ||
|
||
- `input_directory` には、ベクトルタイルを生成する元データが格納されているディレクトリを指定します。 | ||
- `config_file_excel` には、メニュー用設定ファイルのパスを指定します。 | ||
|
||
```bash | ||
$ ./main.sh ./data ./スマートマップ地理空間データ設定.xlsx EPSG:2446 | ||
``` | ||
$ ./main.sh ./data ./data/smartcity-menu.xlsx EPSG:2446 | ||
|
||
## 試してみる | ||
|
||
まずは、以下のコマンドをして下さい。output.mbtiles と app.yml が生成されます。 | ||
|
||
```bash | ||
$ [email protected]:geolonia/smartcity-smartmap-v2-cli.git | ||
$ cd smartcity-smartmap-v2-cli | ||
$ npm install | ||
$ ./main.sh . ./スマートマップ地理空間データ設定.xlsx | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.