樹心幽徑

20170814r2map2.c 航跡疊圖
2017/08/14,10:00

 

dog@wutingan-All-Series:~/lake$ g++  `Magick++-config --cxxflags --cppflags` -I/usr/local/include/ImageMagick-7  r2map2.c `Magick++-config --ldflags --libs`  -L/usr/local/zlib/lib -lz

 

dog@wutingan-All-Series:~/lake$ ./a.out
Syntax: r2map2 a.gpx b.png ox oy rw rh
Example r2map2 a.gpx b.png 324000 2701000 2 2
The output will be r2map2.log and r2map2.jpg
version 20170814 by treehrt
dog@wutingan-All-Series:~/lake$

 

 

dog@wutingan-All-Series:~/lake$ ./a.out slake.gpx slake.png 324000 2701000 1.5 1.5
使用gpx航跡檔slake.gpx
輸出記錄檔r2map2.log
gpx x67diff(3296.772671,1791.368684)
 width=3296 height=1791
使用圖資底檔slake.png
水平及垂直縮放倍率(rw,rh)=(1.500000,1.500000)
底圖寬高為 width=1581 height=2211
縮放後寬高為 width=2371.500000 height=3316.500000
gpx檔推算的原點座標(ox,oy)=(323000,2699000)
圖資底圖左上角原點座標(ox,oy)=(324000,2701000)
輸出航跡疊圖r2map2.jpg 成功!

 

20170814r2map2.c

下載 (8 KB) | created 14 八月, 2017
File

20170814r2map2.c

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType