-
Notifications
You must be signed in to change notification settings - Fork 108
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
Can't read part
with intersecting bounds
#734
Comments
🤔 I think I miss understood the issue.
from affine import Affine
from rasterio.windows import from_bounds
transform = Affine(
1.5239916805075538e-05, 2.4923799296519917e-06, -72.39661926483915,
-3.999189223282901e-06, 1.3694982734873585e-05, -14.168688249774165,
0.0, 0.0, 1.0,
)
dataset_bounds = [-72.39661926483915, -14.198810143003932, -72.26331881334586, -14.066961918019524]
from_bounds(*dataset_bounds, transform)
>> WindowError: Bounds and transform are inconsistent
within_bounds = [-72.30, -14.15, -72.28, -14.10]
from_bounds(*within_bounds, transform)
>> WindowError: Bounds and transform are inconsistent Notes:
|
Hi @vincentsarago, Should this be an issue opened in rasterio repo? |
Already opened an issue rasterio/rasterio#3176 |
Hi @vincentsarago , I noticed the issue you opened is now closed. I was on vacations last week so I'm a bit lost here haha Would you mind putting me up to date on this issue please? Thank you :) |
@MisterTiago the issue needs more deep diving to really understand what's going on. There is something with the file geo transform but I can't be 100% sure that's the behaviour is expected or not/ How did the file was created? |
"How did the file was created?" Are you asking for the packages used in creating the file or something else? The file was created using a script that uses rasterio (amongst other things) |
Yes, the fact the transform is |
Do you want to know how the transform is being calculated for this image? |
HI @vincentsarago , Apologies for taking so long to reply, been caught on other issues. Regarding the transform, we use a simple pinhole camera model which generates GCPs for the 4 corners from which the affine is made. Does this answer your question? |
Hi @vincentsarago , Did you have time to take a deeper look into the issue? |
Hi @MisterTiago Sadly I did not. Got a lot of projects work at the moment so open-source maintenance is not the priority sadly. |
Do you think there's someone we can tag that might be able to look into this? |
not that I can think off I still think there is something with rasterio as I've tried to explained in rasterio/rasterio#3176 But my understanding of Affine transform is limited so if you or if you find someone with knowledge in affine transform, maybe you can see if there is really an issue with rasterio, or if it's with your file. I would also try to replicate what you're trying to do with gdalwarp command (which is a nice way to tell that maybe rasterio has a bug) |
Thank you for the feedback @vincentsarago! I'll have your comment into consideration. I appreciate the help you provided so far and best of luck with your current projects :) |
Hi @vincentsarago, Just want to let you know that I've applied the command |
reported in developmentseed/titiler#640 (reply in thread)
Issue: User is trying to
read
bbox with bounds intersecting the database bounds (boundless read)Solutions:
cc @MisterTiago
The text was updated successfully, but these errors were encountered: