-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
External mask overviews aren't copied correctly when creating internally-masked GeoTIFFs #754
Comments
rouault
added a commit
that referenced
this issue
Jul 14, 2018
…ernal. Fixes -co COPY_SRC_OVERVIEWS=YES of such datasets (fixes #754)
Hurrah, thank you!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Follow-on from discussion in rasterio/rasterio#1373.)
Expected behavior and actual behavior.
As part of COG generation, I'm splitting up image data from its corresponding mask. The image data is converted to YCbCr and bicubic/lanczos-resampled overviews are generated. The mask also has nearest neighbor-resampled overviews produced (and has DEFLATE compression applied). To create the final output of the pipeline, the processed image + mask data (replete with overviews) are merged into a COG containing an internal mask.
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 2.3.1, built according to https://github.com/mojodna/docker-gdal/blob/master/Dockerfile.
The text was updated successfully, but these errors were encountered: