-
Notifications
You must be signed in to change notification settings - Fork 2
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
27 additions
and
16 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
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 |
---|---|---|
@@ -1,37 +1,42 @@ | ||
# docker-twmap-cli | ||
create map locally | ||
|
||
## create map locally | ||
### build docker image yourself | ||
``` | ||
git clone https://github.com/happyman/docker-twmap-cli.git | ||
cd docker-twmap-cli | ||
./build.sh | ||
``` | ||
### use image from dockerhub | ||
``` | ||
docker pull happyman/docker-twmap-cli:latest | ||
chmod 755 ./twmap.sh | ||
``` | ||
### run it | ||
``` | ||
./twmap.sh | ||
Usage: /twmap/twmap_gen/cmd_make2.php -r 236:2514:6:4:TWD67 -O outdir -v 2016 -t title [-p][-m /tmp][-g gpxfile:0:0][-c][-G][-e][-3][-d] | ||
必須參數: | ||
-r params: startx:starty:shiftx:shifty:datum datum:TWD67 or TWD97 | ||
-O outdir: /home/map/out/000003 輸出目錄 | ||
-v 3|2016: 經建3|魯地圖 | ||
-t title: title of image | ||
-v 3|2016|1904|1916|1921|1924: 經建3|魯地圖|堡圖|蕃地|堡圖2|陸測 | ||
選用參數: | ||
-t title: title of image | ||
-p 1|0: 1 是澎湖 pong-hu | ||
-g gpx_file:trk_label:wpt_label 利用GPX檔案產生 | ||
-c keep color 彩圖 | ||
-e draw 100M 格線 | ||
-G merge user track_logs 包含使用者行跡 | ||
-3 for A3 output 輸出A3 | ||
-D 5x7|4x6|3x4|2x3|1x2 等輸出 dimension, 可使用多次, 空則為 5x7 | ||
-m /tmp tmpdir 暫存檔存放目錄 | ||
--check 檢查相依執行程式 | ||
除錯用 -d debug | ||
-s 1-5: from stage 1: create_tag_png 2: split images 3: make simages 4: create txt/kmz 5: create pdf. | ||
-S use with -s, if -s 2 -S, means do only step 2 | ||
以下地圖產生器使用: | ||
-i ip: log remote ip address --agent myhost | ||
-l log_channel --logurl_prefix for custom url, ex: ws://myhost:9002/twmap_ | ||
-a callback url when done | ||
./test.sh | ||
舉例: | ||
./twmap.sh -r 244:2579:3:3:TWD97 -D 3x4 -G -v 2016 | ||
``` | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
v2.73 | ||
v2.74 |
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