[gdal-dev] gdal2tiles from vrt with unexpected result

klo uo klonuo at gmail.com
Mon Jun 16 14:56:14 PDT 2014


Hi,

I tried to use gdal2tiles on a VRT generated from JPG images (which a btw
256 x 256 pixel tiles themselves)
I double checked VRT with gdal_translate to crop part of it and got
expected result.

When I use gdal2tiles, i.e.: `gdal2tiles.py -p raster -z 2 mosaic.vrt` I
get as a result 256px tiles, but tiles are empty except for upper left 64 x
64 px region, which contains what I would expect for whole tile, or put it
differently tile is reduced unnecessarily 4 times while preserving 256px
canvas.

So every single tile, looks like this:

    +---+---+---+---+
    | X |   |   |   |
    +---+---+---+---+
    |   |   |   |   |
    +---+---+---+---+
    |   |   |   |   |
    +---+---+---+---+
    |   |   |   |   |
    +---+---+---+---+

where "X" is region containing map sample while rest of the tile is empty,
or more easily comprehensible by looking at the the attachment.

Any ideas, what might be wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140616/acdb2f39/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 12673 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140616/acdb2f39/attachment-0001.png>


More information about the gdal-dev mailing list