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 removal of inner_polygons from outer_polygons #1104

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

AtelierLibre
Copy link
Contributor

This is a fix for issue #1098. As described by @orrsim, the difference in the inner loop was referring back to the original outer_polygon rather than the result of any previous difference outer_polygon_diff.

With this fix,
ox.features_from_point( (60.4436,10.2364), tags = {'natural' : 'water'}, dist = 100 )
returns Fjorda with the islands removed.

@orrsim, thanks for pointing this out and also for identifying the bug.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cf01fbb) 97.92% compared to head (6b373ac) 97.92%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1104   +/-   ##
=======================================
  Coverage   97.92%   97.92%           
=======================================
  Files          28       28           
  Lines        2505     2505           
=======================================
  Hits         2453     2453           
  Misses         52       52           

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

@gboeing gboeing merged commit 8c76f13 into gboeing:main Jan 7, 2024
8 checks passed
@gboeing
Copy link
Owner

gboeing commented Jan 7, 2024

Thank you @AtelierLibre!

Closes #1098

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

Successfully merging this pull request may close these issues.

2 participants