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(gridintersect): typo shapely function call within gridintersect #2342 #2343

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

dbrakenhoff
Copy link
Contributor

@dbrakenhoff dbrakenhoff commented Oct 22, 2024

Fix for #2342

  • fix typo in shapely.multilinestrings
  • fix issue with np.apply_along_axis
  • consider geometry collections when computing overlaps
  • add test for vertex mode
  • add inactive test for structured mode (not yet working)

Notes:

np.apply_along_axis was reducing result from multiple GeometryCollections to a single MultiLineString causing duplication of shapes in the intersection result.

The test for GeometryCollections in "structured"-mode is commented out as it was failing and I don't have the time at the moment to figure that out. I will open a separate issue, along with some other GridIntersect to-do's (see #2344).

EDIT: structured support will be dropped in future releases (see #2344).

- fix typo in shapely.multilinestrings
- fix issue with np.apply_along_axis
- consider geometry collections when computing overlaps
- add test for vertex mode
- add inactive test for structured mode (not yet working)
@dbrakenhoff dbrakenhoff changed the title fix bug: typo shapely function call within gridintersect #2342 fix(gridintersect): typo shapely function call within gridintersect #2342 Oct 22, 2024
@dbrakenhoff dbrakenhoff linked an issue Oct 23, 2024 that may be closed by this pull request
@dbrakenhoff dbrakenhoff requested a review from wpbonelli October 25, 2024 08:46
@wpbonelli wpbonelli merged commit 34043ab into modflowpy:develop Oct 25, 2024
17 of 22 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
Development

Successfully merging this pull request may close these issues.

bug: typo shapely function call within gridintersect
3 participants