Opened 7 years ago
Closed 7 years ago
#6834 closed defect (invalid)
driver MBTiles does not support creation option BAND_COUNT
Reported by: | mattwilkins | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 2.1.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi,
I just compiled up gdal-2.1.3, in the doco (http://www.gdal.org/frmt_mbtiles.html) there is mention of specifying BAND_COUNT, but when I try this:
gdal_translate in.tif out.mbtiles -co 'BAND_COUNT=4' -of MBTILES
I get
Warning 6: driver MBTiles does not support creation option BAND_COUNT
I am trying to make a mbtiles file that has an alpha channel, and it appears that BAND_COUNT isn't supported. gdalinfo says my tif file has four channels, but the resulting out.mbtiles only has RGB. Do you have any clues for me?
Thanks
Matt
Note:
See TracTickets
for help on using tickets.
It is an opening option. Not a creation option. So it is more "gdalinfo out.mbtiles -oo BAND_COUNT=4" you want to do. The file created should be fine. It is just that guessing the number of channels can be tricky since they may vary from one time to another one depending if the tile is totally opaque or partially.