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

GEOS Install fails #513

Closed
mknaranja opened this issue Mar 18, 2021 · 4 comments
Closed

GEOS Install fails #513

mknaranja opened this issue Mar 18, 2021 · 4 comments

Comments

@mknaranja
Copy link

The GEOS installation may fail on some newer systems, maybe you can provide the workaround of https://gis.stackexchange.com/questions/289409/error-building-geos-on-ubuntu-18-04 in the readme.

@molinav
Copy link
Member

molinav commented Jan 22, 2022

If it is ok for you I would close the issue. Former basemap versions were being compiled against a vendored copy of GEOS 3.3.3 (very old, as you said). Since basemap version 1.3.0, the vendored copy is removed from the repository and basemap can be compiled actually against any newer version of GEOS as desired (at least it seems to work until GEOS 3.8.x).

In particular, for the precompiled binary wheels that I am uploading to PyPI, I am using GEOS 3.5.1 and it works without the need of any special flags. I use this GEOS version because it is the only one I could make compile on all the systems I wanted to target (Windows and GNU/Linux, x86 and x64), but locally I also know that GEOS 3.6.5 can be compiled on GNU/Linux without problems (this is the last version of GEOS that does not require C++11 features).

Since version 1.3.0, the basemap source code also includes a GeosLibrary class in the utils folder that acts as a wrapper to build and install GEOS easily under Windows or GNU/Linux.

@molinav
Copy link
Member

molinav commented Jan 22, 2022

Just to make my previous comment clearer. Since version 1.3.0, you can install basemap directly from PyPI using pip:

python -m pip install basemap

and therefore all the compilation headaches that were common with basemap are now gone because the PyPI wheels bundle everything already compiled. basemap automatically installs the basemap-data package, which contains the crude-, low- and intermediate-resolution datasets. In case you need the high- or full-resolution datasets, you need to install them manually:

python -m pip install basemap-data-hires

@mknaranja
Copy link
Author

I haven't used it for some time but if you got notice of the problem and tested it accordingly, I think it's okay if you close it :)

@molinav
Copy link
Member

molinav commented Jan 24, 2022

@mknaranja Perfect, thanks!

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

No branches or pull requests

2 participants