-
Notifications
You must be signed in to change notification settings - Fork 175
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
compute_reproject_roi
incorrect behaviour for non-overlapping geoboxes
#647
Comments
Problem is in this function: datacube-core/datacube/utils/geometry/tools.py Lines 600 to 607 in ac2866b
On line 602 The fix is to short circuit computation soon after line 602 and set |
Slightly touching but non-overlapping geoboxes might result in roi_dst being non-empty even though roi_src is.
Slightly touching but non-overlapping geoboxes might result in roi_dst being non-empty even though roi_src is.
Slightly touching but non-overlapping geoboxes might result in roi_dst being non-empty even though roi_src is.
Expected behaviour
When
src
anddst
do no overlap I expect bothsrc_roi
anddst_roi
to be empty on output. Seems like in some cases one can get emptysrc_roi
whiledst_roi
isn't empty.See user report here: opendatacube/datacube-stats#173
The text was updated successfully, but these errors were encountered: