I've executed gdal2tiles against 2 raster coverages:

So, I first executed gdal2tiles against a "puzzle" of TIFF files, with a missing piece, and then I executed gdal2tiles against that single missing piece. I want to merge both tiles set. Zoom levels were 4-14, only Google Maps output. Only levels 4-12 have the problem (tiles with the same coords).

Is there any way of merging tiles or should I execute gdal2tiles against the whole "puzzle"?

3 Answers 3


MapTiler could help here. I read on their Google Group that if you tiled that missing piece into the folder where the other tiles were already made, it'll merge the tiles nicely. .

If that doesn't work for you, but you have ImageMagick installed you can try the script I wrote for the same purpose.

  • Great! I'm going to try the '-r antialias' option, like suggested. But anyway, I was coding a script like yours. So, many thanks! Oct 26, 2011 at 14:59
  • The script is not available - dead link :/ Sep 20, 2023 at 13:23
  • @MadsSkjern Dropbox changed their filing system, it's still available but a different link now dropbox.com/scl/fi/9immqgig2gpt5u9wt89ec/…
    – Craig
    Sep 20, 2023 at 23:13

I've never did it but it seems gdal merge could be appropriate :

This utility will automatically mosaic a set of images. All the images must be in the same coordinate system and have a matching number of bands, but they may be overlapping, and at different resolutions. In areas of overlap, the last image will be copied over earlier ones.

Let us know!

  • 1
    Yes, I tested with gdal_merge, but the problem is some tiles contain part of the hole, and part of valid image. There's no simply some blank tiles representing the hole. Those tiles would be easily replaced by valid ones. Thanks for your suggestion, anyway! Jun 9, 2011 at 15:52

I notice this is a rather old thread but I nevertheless have the same question I'm looking for an answer to. Would it be possible to share that script again? It seems that the dropbox link has stoped to work at this moment.

Thanks, Stefan

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.