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

Fix compatibility with pyproj 2.4.2 and reduce generated warnings #40

Merged
merged 4 commits into from
Dec 6, 2019

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Dec 6, 2019

Pyproj 2.4.2+ returns inf for invalid values instead of 1e30. Some of pycoast was checking for 1e30 specifically and ended up drawing things incorrectly. I also noticed some warnings where we were using an AreaDefinition's .proj_str attribute. PROJ (the C library) has or is deprecating PROJ.4 strings and pyproj now produces warnings if you convert CRS information to a PROJ.4 representation. I've fixed this by using the AreaDefinition's crs attribute if possible.

Tests were failing without any changes so I figured additional tests weren't needed.

@djhoese djhoese added the bug label Dec 6, 2019
@djhoese djhoese requested a review from mraspaud December 6, 2019 01:44
@djhoese djhoese self-assigned this Dec 6, 2019
@coveralls
Copy link

coveralls commented Dec 6, 2019

Coverage Status

Coverage increased (+0.6%) to 87.14% when pulling 7a3c582 on test-travis into abf4995 on master.

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to remove a couple of line, otherwise LGTM. Thanks for switching to crs too.

pycoast/tests/test_pycoast.py Outdated Show resolved Hide resolved
pycoast/tests/test_pycoast.py Outdated Show resolved Hide resolved
@djhoese djhoese requested a review from mraspaud December 6, 2019 14:04
@djhoese djhoese merged commit 6bb2b07 into master Dec 6, 2019
@djhoese djhoese deleted the test-travis branch December 6, 2019 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

distorted/strange coastlines with pyproj-2.4.2
3 participants