MapTilesDownloader
MapTilesDownloader copied to clipboard
How to combine output into one image file
I'd like to be able to combine the output into one high res image, or better yet, have that as an output option. Are you willing to implement this, or have any recommendations on how I would go about doing this?
I've used Imagick to first combine the tiles into strips and then combine the strips into one single file.
First generate a stip from the tiles: convert -append "folder/*.png" "strips/strip1.png"
Thereafter convert the strips into a singe file: convert +append "strips/*.png" "./map.png"
Note that -append
concatenates all images vertically and +append
horizontally.
You can also convert the mbtile output to a single tif image via gdal:
gdal_translate output.mbtiles output.tif