Closed andrewharvey closed 5 years ago
@andrewharvey I found a couple blockers for this in Rasterio: https://github.com/mapbox/rasterio/issues/984 https://github.com/mapbox/rasterio/issues/985. I'll update here when those are fixed. Will require a Rasterio upgrade.
@andrewharvey Do you fix the problems? and how?
@andrewharvey Do you fix the problems? and how?
@shanyuk nope. Alternatives are https://github.com/mapbox/mapbox-tile-copy and then download tiles from S3 and use https://github.com/mapbox/mbutil to pack them into an MBTiles (which I think should give you the same result as uploading your GeoTIFF as is to Mapbox), or just upload directly to Mapbox.
Thank you. I will have a try.
@andrewharvey https://github.com/ecometrica/gdal2mbtiles
Kicking this to a future milestone. 1.4.0 is coming sooner than I can make the rasterio fix.
New milestone: 1.4.2 cc @jacquestardie
Resolved and will be available in 1.4.2 (on PyPI later today). New usage is explained in the README and rio mbtiles --help
.
When I run the following:
where
raster.tif
has an Alpha bandFor example using NE2_50M_SR and running:
creating a 4th alpha band:
rio produces the output: