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

Convert to proj v5 API #1140

Closed
QuLogic opened this issue Oct 7, 2018 · 10 comments · Fixed by #1808
Closed

Convert to proj v5 API #1140

QuLogic opened this issue Oct 7, 2018 · 10 comments · Fixed by #1808

Comments

@QuLogic
Copy link
Member

QuLogic commented Oct 7, 2018

The proj_api.h header and the functions related to it is considered deprecated from version 5.0.0 and onwards. The header will be removed from PROJ in version 7.0.0 scheduled for release February 1st 2020.

This applies to trace.pyx.

Originally posted by @dopplershift in #1045 (comment)

@QuLogic
Copy link
Member Author

QuLogic commented Dec 20, 2018

xref to pyproj4/pyproj#152

@snowman2
Copy link
Contributor

I would be happy to take a stab at it if no one else is planning to do it anytime soon.

@aeroevan
Copy link

Now that proj 6 is out, it might be nice to define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H for the proper proj_version until the API update is complete.

@adamjstewart
Copy link

Just a heads up, PROJ 7 is now out...

@dopplershift
Copy link
Contributor

Looks like removing proj_api.h has been postponed to 8.0 according to OSGeo/PROJ#837. Which explains how cartopy was built against PROJ 7.1 on conda-forge. I'd love to solve this by taking a stab at #1477.

@snowman2
Copy link
Contributor

The proj_api.h has been removed from the PROJ src code. Change will be released in PROJ 8.

@sebastic
Copy link

PROJ 8.0.0-rc1 has been released with which it's impossible to build cartopy.

Xarthisius added a commit to Xarthisius/yt that referenced this issue May 24, 2021
Xarthisius added a commit to Xarthisius/yt that referenced this issue May 24, 2021
jzuhone added a commit to yt-project/yt that referenced this issue May 24, 2021
tsutterley added a commit to tsutterley/pyTMD that referenced this issue May 28, 2021
homebrew now installs proj8 by default
proj8 deprecated and removed the proj_api.h header
SciTools/cartopy#1140
@bjkindia
Copy link

The proj_api.h has been removed from the PROJ src code. Change will be released in PROJ 8.

In this case how can we install Cartopy ?
I am getting error
lib/cartopy/trace.cpp:634:10: fatal error: 'proj_api.h' file not found #include "proj_api.h" ^~~~~~~~~~~~

@dopplershift
Copy link
Contributor

@bjkindia For now, the workaround is to install PROJ<8.

@bjkindia
Copy link

Well finally I installed with Conda. I can't solve with manually.

Conda is great

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

Successfully merging a pull request may close this issue.

7 participants