MapTilesDownloader icon indicating copy to clipboard operation
MapTilesDownloader copied to clipboard

How to combine output into one image file

Open jcmk opened this issue 2 years ago • 2 comments

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?

jcmk avatar Jun 22 '22 02:06 jcmk

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.

akempes avatar Dec 22 '22 22:12 akempes

You can also convert the mbtile output to a single tif image via gdal:

gdal_translate output.mbtiles output.tif

aliflux-omo avatar Dec 23 '22 08:12 aliflux-omo