Skip to content

fix(gridintersect): typo shapely function call within gridintersect #2342#2343

Merged
wpbonelli merged 4 commits into
modflowpy:developfrom
dbrakenhoff:fix_2342_bug_gridintersect
Oct 25, 2024
Merged

fix(gridintersect): typo shapely function call within gridintersect #2342#2343
wpbonelli merged 4 commits into
modflowpy:developfrom
dbrakenhoff:fix_2342_bug_gridintersect

Conversation

@dbrakenhoff
Copy link
Copy Markdown
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
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