-
Notifications
You must be signed in to change notification settings - Fork 84
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
Update to support proj >= 8 #148
Conversation
PJ_COORD in; | ||
in.uv = { lon, lat }; | ||
PJ_COORD out = proj_trans(proj_, PJ_FWD, in); | ||
return std::make_tuple<double, double>(std::move(out.xy.x), std::move(out.xy.y)); |
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.
Nit: the previous version of this line references out.u
and out.v
, but I think that these should be x
and y
? The change is a no-op because of the underlying union, but I think x
and y
is more correct?
Just for info: I just locally merged this commit with the latest main branch on Ubuntu 22.04.1, and the resultant build was successful (on Ubuntu 22.04.1 LTS on x86-64). I had the previously been experiencing the missing "proj_api.h" error.. Just wanted to say thanks for taking the time to put this together,,, |
Just confirming this also worked for me. I am not sure I did it correctly (I pulled from jim-minter:update_proj, then did a git cherry-pick ). is there a way to apply this patch to the master source instead? |
Just another confirmation that this fixed the compile error on Ubuntu 22.04.2 LTS
|
After following the instructions from the usradioguy website for my RaspberryPi 3B+, when I ran I got an answer from user TheRealBanana0 and he pointed me to this link Apparently the issue I have is known and I followed new commands from Davem734 in this link |
Hi Dave, by using that patch I was able to continue the
this is an Ubuntu 23.10 machine with |
Thanks, @jim-minter. I merged your change in #167 after adding backwards compat for older distributions. |
@reynico Looking into the compilation issue on 23.10 next. |
According to https://proj.org/development/index.html, proj deprecated the legacy compatibility proj_api.h header in version 5 and removed it in version 8 in March 2021.
Currently goesproc supports proj >= 4 and < 8. This PR updates the use of the proj API such that goesproc would support proj >= 5 and <= 9 (current). This re-enables compilation with proj on the most recent versions of Ubuntu and Fedora (presumably among others).
I propose that proj 4 is sufficiently old that it would be better for goesproc to drop support for it, rather than having duplicate support for both proj APIs, but it would also be possible to refactor this PR to support both APIs (like the patch in #142 (comment)) if it was felt preferable.
Fixes #130
Fixes #142