SciTools/cartopy

Convert to proj v5 API

Closed this issue ยท 10 comments

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)

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

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.

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

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.

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

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

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" ^~~~~~~~~~~~

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

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

Conda is great