Skip to content

Commit

Permalink
upgrade to 2.74
Browse files Browse the repository at this point in the history
  • Loading branch information
happyman committed Aug 31, 2023
1 parent 703d88f commit a4c1a64
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ RUN wget --tries=0 --timeout=2 -O - https://getcomposer.org/installer | php -- -
## 14db2ef remove 經建一版
## v3.03_v4.34 use beanstalkd
## svg parse error 27a39a9 e17c92b
## v3.20_v4.36 可出歷史圖層
git clone --progress https://github.com/happyman/twmap && \
cd twmap/twmap_gen && git checkout e17c92b && composer install && cp config.inc.php.sample config.inc.php && \
cd twmap/twmap_gen && git checkout v3.20_v4.36 && composer install && cp config.inc.php.sample config.inc.php && \
mkdir -p /workdir && chmod -R a+rwX /workdir

USER ${USERNAME}
Expand Down
31 changes: 18 additions & 13 deletions README.md
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
```

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.73
v2.74
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ echo "test rudymap..."
./twmap.sh $debug -r $range -D 3x4 -G -v 2016 $debug $log $dns
echo "test twmap..."
./twmap.sh $debug -r $range -c -G -D 2x3 -v 3 $debug $log $dns

echo "test historical map..."
./twmap.sh $debug -r $range -G -D 2x3 -v 1904 $debug $log $dns
./twmap.sh $debug -r $range -G -D 4x6 -D 2x3 -v 1916 $debug $log $dns
./twmap.sh $debug -r $range -G -D 5x7 -D 2x3 -v 1921 $debug $log $dns
./twmap.sh $debug -r $range -G -D 1x2 -D 2x3 -v 1924 $debug $log $dns
echo done

0 comments on commit a4c1a64

Please sign in to comment.