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

Minor notebook fixes for Fiona and GeoPandas #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

geographika
Copy link
Contributor

@geographika geographika commented Mar 20, 2024

Switch to unary_union for Shapely as cascaded_union is deprecated and shows warnings:

ShapelyDeprecationWarning: The 'cascaded_union()' function is deprecated. Use 'unary_union()' instead.
  dst_poly = cascaded_union(nboxes)

Use geoms for multipart feature access in Shapely to avoid the following warnings:

ShapelyDeprecationWarning: Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0. Use the `geoms` property 
to access the constituent parts of a multi-part geometry.

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.

1 participant