Changes between Initial Version and Version 6 of Ticket #6836
- Timestamp:
- Mar 15, 2017, 5:24:34 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6836 – Description
initial v6 4 4 5 5 I 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 {{{ 6 8 gdalwarp -tr 0.02 0.02 -r average 11.tif tmp.tif 7 9 gdal_translate tmp.tif foo.mbtiles -of MBTILES 10 }}} 11 8 12 but this sequence of commands (NB: just the resolution different) results in an mbtiles without an alpha band: 13 14 {{{ 9 15 gdalwarp -tr 0.0002 0.0002 -r average 11.tif tmp.tif 10 16 gdal_translate tmp.tif foo.mbtiles -of MBTILES 17 }}} 18 11 19 12 20 The input file 11.tif is kinda large so not sure I want to submit it here. But this is its gdalinfo 13 21 22 23 {{{ 14 24 Driver: GTiff/GeoTIFF 15 25 Files: 11.tif … … 43 53 Mask Flags: PER_DATASET ALPHA 44 54 Band 4 Block=4863x1 Type=Byte, ColorInterp=Alpha 55 }}} 56 45 57 46 58 Note that I tried doing a 59 60 {{{ 47 61 gdalwarp -t_srs EPSG:3857 -r average 11.tif tmp2.tif 62 }}} 63 48 64 first and I got similar results: this didn't work, 65 66 {{{ 49 67 gdalwarp -tr 40 40 -r average tmp2.tif tmp.tif 50 68 gdal_translate tmp.tif foo.mbtiles -of MBTILES 69 }}} 70 51 71 but this did: 72 73 {{{ 52 74 gdalwarp -tr 4000 4000 -r average tmp2.tif tmp.tif 53 75 gdal_translate tmp.tif foo.mbtiles -of MBTILES 76 }}} 77 54 78 and the gdalinfo of tmp2.tif is 79 80 {{{ 55 81 Driver: GTiff/GeoTIFF 56 82 Files: tmp2.tif … … 99 125 Band 4 Block=11277x1 Type=Byte, ColorInterp=Alpha 100 126 127 }}} 128 101 129 Thanks for any help. 102 130