[gdal-dev] How to merge tile trees

Ari Jolma ari.jolma at gmail.com
Tue Sep 22 22:48:23 PDT 2015


Dash,

I have only a limited experience with tiles and gdal2tiles, so I'm not 
sure the correctness of this but anyway. I'd also like to see if I have 
understood correctly, so please anybody correct if I'm wrong.

The tiles are in a two-level directory tree, where the top level has the 
zoom level and the one below that has a number, which I assume is some 
kind of global location reference. Within that there are the tiles, 
which have a name, which, I assume, are some kind of global location 
reference. For example I have this:

9
     286
         366.png
...
10
     573
         733.png
...

If you have two trees, which have the same original data, then I assume 
it is a simple directory copy to merge them.

Also, gdal2tiles seems to detect, which tiles you have and only recreate 
the missing ones when run twice with the same command line.

Best,

Ari

On 22.09.2015 21:33, Dash wrote:
> Hey folks,
>
> I have a slight problem that is stumping me.  I created  a large set of
> tiles using gdal2tiles only to notice that I was missing 2 images.  So,
> instead of creating all new tiles I created a set of tiles (with the same
> extent) for just the 2 missing images.  However, now I don't know how to
> merge the 2 tile trees.  The output from gdal2tiles creates images with the
> exact same name, so is it even possible to merge to 2 tile sets?
>
> I hope my explanation makes sense.
>
> Thanks...
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-merge-tile-trees-tp5225493.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list