New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A certain combination of parameters leads to unexpected results #211
Comments
Thanks for the report @drnextgis |
It works fine. At least it doesn't produce an alpha band which is my main problem.
|
can you print the compression used for all the COG ? |
|
@drnextgis is your file in |
|
@vincentsarago you can reproduce it with publicly available dataset:
|
So this is a GDAL
The problem is that GDAL will use an Alpha band when retrojecting the data to WebMercator See https://gdal.org/drivers/raster/cog.html#reprojection-related-creation-options
So by default, our mask band will be translated to an Alpha Band. The only way you can keep the
What's nextWe could add warning if user use |
Thank you @vincentsarago for sorting this out! |
I would expect to get the same set of
mask_flags
for Case 4 as for the rest of the cases. Am I missing something or it is a bug?🟢 Case 1
--add-mask
🟢 Case 2
--add-mask --web-optimized
🟢 Case 3
--add-mask --use-cog-driver
🔴 Case 4
--add-mask --use-cog-driver --web-optimized
The text was updated successfully, but these errors were encountered: