Bash Script to download TMS Tiles and merge them for easy Printing with Scale Bar.
- This .sh file is expected in C:\progs\limexMapDownloader
- Place in the same folder: awk (download from http://gnuwin32.sourceforge.net/packages/gawk.htm)
- Also ImageMagick () is expected in folder C:\progs\ImageMagick
- Script stores the tiles in /in Folder and deletes them before the next run for the selected Map and zoom
- Script stores the merged map in /out and adds a scale bar at the lower right corner
- Change the Lat Long "Box" of the downloadable Map (Line 87 and 88)
- Change the Zoom (Line 102): i.e. Z=15
- Change the Tile Server (Line 120): Uncomment i.e. Line with TILE_NAME="SigmaCycle"; .....
https://opentopomap.org/files/montage.sh Some Functions from https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Lon..2Flat._to_tile_numbers
This is my first bash file, so please dont expect a masterpiece. I used bash because the original downloader idea was in bash. The script is a quick and dirty hack to get the stuff done: Get a printable A3 Map without downloading expensive Apps or paying for printing service. Everyone is invited to extend and change the code.