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

Bug in utils.coords_to_merit_tile #178

Open
jsta opened this issue Feb 6, 2025 · 1 comment
Open

Bug in utils.coords_to_merit_tile #178

jsta opened this issue Feb 6, 2025 · 1 comment

Comments

@jsta
Copy link
Member

jsta commented Feb 6, 2025

This returns n30w150 (a non-existent tile):

utils.coords_to_merit_tile(-121, 41)

it should return n40w125

@jonschwenk
Copy link
Collaborator

After looking at that function, and given this error, I would probably rewrite it to use geometries and an intersection() function from geopandas. Not sure how much slower that would be, but there aren't that many merit tiles, and it would be way more readable.

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

No branches or pull requests

2 participants