You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# COG produced using this pipeline; we're going to ignore any overviews present and# regenerate them
curl -O https://mojodna-temp.s3.amazonaws.com/internal-mask.tif
# copy bands 1,2,3 to intermediate.tif, mask to intermediate.tif.msk
gdal_translate -b 1 -b 2 -b 3 -mask mask internal-mask.tif intermediate.tif
# add overviews (possibly resampling in a way that would be disruptive to a mask (i.e.# introduce values that aren't 0 or 255), e.g. bicubic)
gdaladdo intermediate.tif 2 4 8 16 32
# add overviews to the mask
gdaladdo intermediate.tif.msk 2 4 8 16 32
# create an internally-masked result (this is where COG options would be applied)
gdal_translate \
-stats \
-co COPY_SRC_OVERVIEWS=YES \
--config GDAL_TIFF_INTERNAL_MASK YES \
intermediate.tif out.tif
out.tif contains all expected overviews, although each of its mask overviews is incorrect (all 255, extracted using tiffcp out.tif,7 mask-ovr1.tif for the first level).
The same overview level from intermediate.tif.msk (tiffcp intermediate.tif.msk,1 intermediate-mask-ovr1.tif for the first level) contains correct values.
This is almost an exact duplicate of #754. The only difference is that the 2nd
gdal_translate
command includes-stats
to trigger the behavior.Expected behavior and actual behavior.
Expected: internal mask overviews w/ mixed values.
Actual: internal mask overviews that are all
255
.Steps to reproduce the problem.
out.tif
contains all expected overviews, although each of its mask overviews is incorrect (all255
, extracted usingtiffcp out.tif,7 mask-ovr1.tif
for the first level).The same overview level from
intermediate.tif.msk
(tiffcp intermediate.tif.msk,1 intermediate-mask-ovr1.tif
for the first level) contains correct values.Operating system
Ubuntu 16.04 64 bit (Docker)
GDAL version and provenance
GDAL
release/2.3
branch (containing 12e52bc and fde9dea), built according to https://github.com/mojodna/docker-gdal/blob/v2.3.x/Dockerfile.The text was updated successfully, but these errors were encountered: