-
Notifications
You must be signed in to change notification settings - Fork 3
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
S3 proj_trans() Generic #56
Conversation
Failing tests are related to paleolimbot/wk#217 which hasn't yet landed on CRAN. |
I'll check some more tomorrow, I think this is fine to merge and I will probably just do that after I do my "usage" checks for usual tricks. |
I haven't yet removed the existing I haven't attempted to replicate this behaviour in the {wk} transformer. I think it's doable though Lines 78 to 81 in 7f4c4e7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
any reason not to merge this in? I'm keen to do that and move on, I can spend some time here now |
Sorry for the delay, I've been unable to get back to this. I'll drop the superseded c functions and then we can merge. We could put in a guard for the failing tests also since they're dependent on wk > 0.9.1 which isn't on cran. |
Re-implements proj_trans(), leveraging
wk::wk_handle()
andproj_trans_create()
. This allows for inputs to take any form thatwk::wk_handle()
supports, including:For coordinate matrices / data frames, there's an approximate 15-20% compute overhead compared with previous implementation. Benchmark:
Created on 2024-03-22 with reprex v2.1.0
Closes #49
Breaking changes
x
parametertarget -> target_crs
,source -> source_crs
source_crs
defaults to the inputcrs
if available, falling back toOGC:CRS84
use_z
anduse_m
parameters