Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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"?

Thanks in advance, and best regards

share|improve this question

2 Answers 2

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!

share|improve this answer
    
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! –  jorgeas80 Jun 9 '11 at 15:52

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.

share|improve this answer
    
Great! I'm going to try the '-r antialias' option, like suggested. But anyway, I was coding a script like yours. So, many thanks! –  jorgeas80 Oct 26 '11 at 14:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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