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

TST: Force an orientation in the lakes shapereader test #2028

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

greglucas
Copy link
Contributor

pyshp 2.2 automatically orients the shapefiles that are read in, so force an orientation while testing specific coordinates.

closes #2012

Alternative to PR #2022

pyshp 2.2 automatically orients the shapefiles that are read in, so
force an orientation while testing specific coordinates.
@greglucas greglucas added this to the 0.21 milestone Mar 27, 2022
@greglucas greglucas requested a review from QuLogic March 27, 2022 14:19
@QuLogic
Copy link
Member

QuLogic commented Apr 26, 2022

LGTM; don't know why I forgot about this.

@QuLogic QuLogic merged commit 2738f00 into SciTools:main Apr 26, 2022
@greglucas greglucas deleted the test-lakes-orient branch April 26, 2022 02:00
@karimbahgat
Copy link
Contributor

For info, just pushed pyshp v2.3.0, where geojson ring orientation has now been reverted back to preserving the original shapefile ring orientation (not enforcing ring orientation based on exterior/interior). See a9ba72da52743850164185dd8db5fd821494fd11 for details. Nevertheless, as discussed in #2012, the enforcement of ring orientation in this PR adds robustness against possible future adoption of RFC7946 in fiona/gdal 👍

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

Successfully merging this pull request may close these issues.

pyshp-2.2.0 test failure
3 participants