Changes between Initial Version and Version 6 of Ticket #6836


Ignore:
Timestamp:
Mar 15, 2017, 5:24:34 AM (5 years ago)
Author:
Jukka Rahkonen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6836 – Description

    initial v6  
    44
    55I have a geotiff that I want to make into a mbtiles with an alpha band.  This sequence of commands makes a mbtile with an alpha band:
     6
     7{{{
    68 gdalwarp  -tr 0.02 0.02   -r average 11.tif tmp.tif
    79 gdal_translate tmp.tif foo.mbtiles  -of MBTILES
     10}}}
     11
    812but this sequence of commands (NB: just the resolution different) results in an mbtiles without an alpha band:
     13
     14{{{
    915 gdalwarp  -tr 0.0002 0.0002   -r average 11.tif tmp.tif
    1016 gdal_translate tmp.tif foo.mbtiles  -of MBTILES
     17}}}
     18
    1119
    1220The input file 11.tif is kinda large so not sure I want to submit it here.  But this is its gdalinfo
    1321
     22
     23{{{
    1424Driver: GTiff/GeoTIFF
    1525Files: 11.tif
     
    4353  Mask Flags: PER_DATASET ALPHA
    4454Band 4 Block=4863x1 Type=Byte, ColorInterp=Alpha
     55}}}
     56
    4557
    4658Note that I tried doing a
     59
     60{{{
    4761gdalwarp -t_srs EPSG:3857 -r average 11.tif  tmp2.tif
     62}}}
     63
    4864first and I got similar results: this didn't work,
     65
     66{{{
    4967 gdalwarp  -tr 40 40   -r average tmp2.tif tmp.tif
    5068 gdal_translate tmp.tif foo.mbtiles  -of MBTILES
     69}}}
     70
    5171but this did:
     72
     73{{{
    5274 gdalwarp  -tr 4000 4000   -r average tmp2.tif tmp.tif
    5375 gdal_translate tmp.tif foo.mbtiles  -of MBTILES
     76}}}
     77
    5478and the gdalinfo of tmp2.tif is
     79
     80{{{
    5581Driver: GTiff/GeoTIFF
    5682Files: tmp2.tif
     
    99125Band 4 Block=11277x1 Type=Byte, ColorInterp=Alpha
    100126
     127}}}
     128
    101129Thanks for any help.
    102130