-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 footprint problem with JPEG compressed 1 band + alpha TIFF #8834
Comments
…PEG + 1-bit mask band Slightly related to OSGeo#8834
…nly the alpha band and not the other ones (really fixes OSGeo#8792, fixes OSGeo#8834)
hum it turns out that gdal_footprint on input datasets with an alpha band was totally broken (and will still be in 3.8.1). Fixed per #8839 |
…PEG + 1-bit mask band Slightly related to #8834
…PEG + 1-bit mask band Slightly related to OSGeo#8834
…nly the alpha band and not the other ones (really fixes OSGeo#8792, fixes OSGeo#8834)
I have created successfully thousands of image footprint polygons with gdal_footprint but it does not work for one image. All images have been created in the same way that is close to this.
gdalwarp -of COG -t_srs epsg:3067 -co compress=jpeg -co quality=90 -cutline temp.json -crop_to_cutline input.tif output.tif
The source image that makes trouble has 1 band and alpha while the others have 3 bands + alpha.
The problematic image is this: http://latuviitta.org/downloads/%2323491076!_2.tif
Original data are in this package (.jpg + mask TIFF which are georeferenced and combined with a vrt) http://latuviitta.org/downloads/1band.zip
The difference to successful footprint extraction seems to be that gdal_footprint finds extraordinary many polygon fragments from this image. The process is not at all ready when the status reaches "done" but gdal_footprint continues to generate very heavy CPU load. Probably that would last forever but I did not wait so long. I believe that the alpha band is also JPEG compressed because it has nearblack mice bite artefacts like in this image round the boundaries.
Gdalinfo reports 2 bands from the image
From the 3 bands + alpha gdalinfo reports only 3 bands
Could there be some issue in converting alpha band into binary mask with single band data and JPEG compression?
The text was updated successfully, but these errors were encountered: