Skip to content

Commit

Permalink
add geometry collection recursively to geometry collection, fixes #221
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Dec 3, 2024
1 parent ba2c527 commit 8297404
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pygeoif/hypothesis/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,19 @@ def geometry_collections( # noqa: PLR0913
srs=srs,
has_z=has_z,
),
st.recursive(
geometry_collections(
min_geoms=min_geoms,
max_geoms=max_geoms,
max_points=max_points,
min_interiors=min_interiors,
max_interiors=max_interiors,
srs=srs,
has_z=has_z,
),
lambda children: children,
max_leaves=3,
),
),
min_size=min_geoms,
max_size=max_geoms,
Expand Down

0 comments on commit 8297404

Please sign in to comment.