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(gis.py): Ensure valid geometries for intersection functions #170

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

kzeiler
Copy link

@kzeiler kzeiler commented Oct 31, 2024

Employ shapely’s make_valid() for input geometries to intersect_rtree() and intersect() to prevent errors. Also purge code comments of geom2 being polygon geometries for both functions plus rename variable “poly” to “geom” when enumerating geom2 in intersect_rtree().

Fixes #169.

Employ shapely’s make_valid() for input geometries to intersect_rtree() and intersect() to prevent errors. Also purge code comments of geom2 being polygon geometries for both functions plus rename variable “poly” to “geom” when enumerating geom2 in intersect_rtree().

Close DOI-USGS#169.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.32%. Comparing base (1f37e0d) to head (d134426).
Report is 1 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #170      +/-   ##
===========================================
+ Coverage    86.31%   86.32%   +0.01%     
===========================================
  Files           19       19              
  Lines         4208     4213       +5     
===========================================
+ Hits          3632     3637       +5     
  Misses         576      576              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aleaf aleaf merged commit 19ab7c0 into DOI-USGS:develop Nov 4, 2024
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants