mapbox / rio-mbtiles

A plugin command for the Rasterio CLI that exports a raster dataset to an MBTiles 1.1 SQLite file
MIT License
125 stars 36 forks source link

possible to produce transparency in tiles? #29

Closed jdmcbr closed 7 years ago

jdmcbr commented 7 years ago

I have a GeoTIFF in which nodata values are represented with 0. If I use rio mbtiles file.tif -o file.mbtiles --src-nodata 0 this produces black in areas of no data, rather than the transparency that I was hoping for. Is it possible to produce transparency? If so, what am I doing wrong?

jdmcbr commented 7 years ago

JPEGs don't support transparency, so switching to PNG solved.