Skip to content
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

Crop returns incorrect result #137

Closed
alex-s-gardner opened this issue Aug 16, 2023 · 1 comment · Fixed by #139
Closed

Crop returns incorrect result #137

alex-s-gardner opened this issue Aug 16, 2023 · 1 comment · Fixed by #139

Comments

@alex-s-gardner
Copy link
Contributor

alex-s-gardner commented Aug 16, 2023

This example returns a 100x0x1 GeoArray when I believe it should return a 100x100x1 GeoArray, no?

ga = GeoArray(rand(100,100))
bbox!(ga, (min_x=.5, min_y=.5, max_x=100.5, max_y=100.5))  
extent = bbox(ga)
foo = crop(ga, extent)

using GeoArrays v0.8.3

This was referenced Aug 16, 2023
@evetion
Copy link
Owner

evetion commented Aug 18, 2023

Ouch! Thanks for the report & PR 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants