-
-
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
gdalwarp cutline performance #6905
Comments
rouault
added a commit
to rouault/gdal
that referenced
this issue
Dec 12, 2022
…ith GeoTIFF keys override and northing, easting axis order (found when looking at OSGeo#6905)
Another thought, We also found that if we optimize the cutline geometry down to just the tiff itself (or buffered slightly) it also significantly improved the performance of the warp/translate. |
rouault
added a commit
to rouault/gdal
that referenced
this issue
Dec 12, 2022
…ocessing chunks are fully contained within the cutline (fixes OSGeo#6905)
rouault
added a commit
to rouault/gdal
that referenced
this issue
Dec 12, 2022
…ocessing chunks are fully contained within the cutline (fixes OSGeo#6905)
#6907 should fix your issue. With it:
|
rouault
added a commit
to rouault/gdal
that referenced
this issue
Dec 12, 2022
…ocessing chunks are fully contained within the cutline (fixes OSGeo#6905)
rouault
added a commit
to rouault/gdal
that referenced
this issue
Dec 12, 2022
…ocessing chunks are fully contained within the cutline (fixes OSGeo#6905)
oh wow that was super fast thanks @rouault I am building a copy of that pr now! |
Awesome 🎉 @rouault this does fix my problem!
|
rouault
added a commit
that referenced
this issue
Dec 13, 2022
…ith GeoTIFF keys override and northing, easting axis order (found when looking at #6905)
rouault
added a commit
that referenced
this issue
Dec 13, 2022
…ocessing chunks are fully contained within the cutline (fixes #6905)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior and actual behavior.
I have a huge number of TIFFs I am processing into cloud optimised geotiffs, I am applying a cutline to remove bad information from the edge of the TIFFs (black/white spots/warped features).
If I apply a cutline to a tiff the processing time goes up significantly 2 seconds -> 72 seconds even if the cutline fully covers the TIFF.
Is there a easy way to determine if the cutline is needed before? Could GDAL automatically ignore cutlines if the the cutline fully covers the TIFF?
I am currently looking at adding this logic before applying the warp/COG
Steps to reproduce the problem.
Data: https://public.lo.chard.com/gdal-6905/
I have a dataset of tiffs the black shaded boxes , and a cutline that is the red line
![image](https://user-images.githubusercontent.com/1082761/207156494-18ef7f54-f9ec-4bb1-9cf2-9e0db1feedfb.png)
these commands operate on the red shaded tile
Create a VRT with a cutline and one without
Run the cog creation process on the cutline and non cutline variant
Operating system
Docker/Ubuntu
GDAL version and provenance
docker gdal
:ubuntu-small-latest
:ubuntu-small-3.6.0
The text was updated successfully, but these errors were encountered: