Opened 10 years ago
Closed 10 years ago
#5439 closed defect (fixed)
MBTiles driver not respecting transparency
Reported by: | jpalmer | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.11.1 |
Component: | GDAL_Raster | Version: | |
Severity: | normal | Keywords: | mbtiles |
Cc: |
Description
This attached mbtile file has png tiles with transparency. However when read using the GDAL driver and translated with gdal_translate transparency is not maintained. i.e
gdal_translate -of png -outsize 1000 1000 parcels_transparent.mbtiles parcels_transparent.png
I first noticed this when loading a MBTile file in QGIS.
Attachments (2)
Change History (8)
by , 10 years ago
Attachment: | parcels_transparent.png added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Seems to work fine on my side. Well at least I get a result almost fully transparent with a few polygons in yellow. See attached file.
by , 10 years ago
Attachment: | out_erouault.png added |
---|
comment:3 by , 10 years ago
Hum, I tried again at home and reproduced your issue... So it seems that my dataset from this morning was something completely different !
Anyway, here it is :
trunk r27213, branches/1.11 r27214 : "MBTILES: better detection of 4 bands dataset (if sample tile is a paletted PNG with transparency); and take into account alpha component of color table in RasterIO() (#5439)"
comment:4 by , 10 years ago
comment:5 by , 10 years ago
Wow that's fantastic. Now works for me - Looks so much better in QGIS :)
Thanks Even
comment:6 by , 10 years ago
Component: | default → GDAL_Raster |
---|---|
Keywords: | mbtiles added |
Milestone: | 1.11.0 → 1.11.1 |
Resolution: | → fixed |
Status: | new → closed |
Version: | svn-trunk |
MBTile file is here: https://dl.dropboxusercontent.com/u/30623980/parcels_transparent.mbtiles