-
Notifications
You must be signed in to change notification settings - Fork 79
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
SDR tests are failing with gdal=3.4.2 #905
Comments
Confirmed that the tests fail with GDAL 3.4.2 and pass with 3.4.1. The differences are larger than I'd like to attribute to floating point imprecision. |
This comes down to this undocumented change released in 3.4.2. From what I can tell, nearest neighbor is being used instead of The However, I think next steps are:
|
Yeah I don't know what they mean by this either. And I also see this in the changeset you linked:
So if that option is on, the resize window is 0? Meaning 0 pixels (or 0 other pixels?) are included in the resampling window. So how could it possibly matter what the resampling algorithm is at that point? I'm doing a lot speculation here, I haven't fully digested the source code. |
Yes, but I do wonder when exactly this happens. For example I see that in the SDR sample data, the DEM and the LULC rasters are already perfectly aligned as inputs, so perhaps that's a reason why GDAL goes for the optimized options? And if it's actually improving the accuracy of the result, maybe it's a good thing. If they don't use these options in any other cases, then maybe we don't need to make any changes? |
That would probably be fine if we can confirm that. I'm struggling to understand the source code and see when it applies. I created an issue on osgeo/gdal asking about it. |
Here's the ticket: OSGeo/gdal#5578! |
Pinning GDAL<3.4.2 as a temporary fix until we have a better understanding of what the changes in 3.4.2 do. |
It seems there are DLL import issues with version And once we have consensus that the changes in gdal |
This got an answer that the results seem correct (and are indeed more accurate than before). I still don't understand when exactly this improvement is applied, but there are many things I don't understand about GDAL 🤷♀️ |
Three SDR tests are failing on github actions:
These passed when I ran them locally. Possibly an updated dependency?
The text was updated successfully, but these errors were encountered: