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

Throw errorin interpolate_pw() if inputs have different CRS and CRS not supplied #567

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jayrobwilliams
Copy link

Check to see if from, to, and weights have the same CRS if CRS is not supplied as a function argument to interpolate_pw(). This saves time if weights is large and a long time is spent generating centroids before sf::st_join() will inevitably fail when trying to create denomiators due to the mismatched CRS.

@jayrobwilliams
Copy link
Author

I don't think my changes would have have had any effect on package compilation. I'm not familiar enough with R development on Windows to tell if the windows-latest check failure is an actual issue, or something going on with the runner. @walkerke could you let me know if I need to modify my code at all?

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 this pull request may close these issues.

None yet

1 participant