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

Fixed compatibility issue with pyproj 2.0+ #454

Merged
merged 5 commits into from
Apr 23, 2019
Merged

Fixed compatibility issue with pyproj 2.0+ #454

merged 5 commits into from
Apr 23, 2019

Commits on Mar 13, 2019

  1. Fixed compatibility issue with pyproj 2.0+

    Starting with version 2.0, the `pyproj.pyproj_datadir` constant was deprecated in favor of the `pyproj.datadir.get_data_dir()` constant.
    A minor alteration to Basemap's `__init__.py` file allows compatibility with both the newer and older versions of pyproj regarding this breaking change.
    pandrey-fr authored Mar 13, 2019
    Configuration menu
    Copy the full SHA
    f2079dd View commit details
    Browse the repository at this point in the history
  2. Added checks and look up options for epsg file.

    Since version 2.0, pyproj comes with an internal data directory that is used in favor of the one set by the PROJ_LIB environment variable (or, on Linux, of the default proj folder set by PROJ.4). It appears this internal directory sometimes does not contain the epsg file (at least on Linux), which may however be found by looking up those other locations.
    
    This commit therefore adds attempts to look up for the epsg file when it cannot be found in pyproj's internal datadir.
    pandrey-fr committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    27ee6ae View commit details
    Browse the repository at this point in the history
  3. Fixed exception compatibility.

    FileNotFoundError is not part of built-in exceptions in Python 2.
    This commit allows to use it in Python 3, and replace it with a
    RuntimeError in Python 2.
    pandrey-fr committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    33b94d1 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. Added epsg file in basemap's data folder.

    TODO: add license file regarding epsg, based
    on terms of use, which are found here:
    http://www.epsg.org/TermsOfUse.aspx
    pandrey-fr committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    84ddf45 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2019

  1. Configuration menu
    Copy the full SHA
    2f9b4fa View commit details
    Browse the repository at this point in the history