Skip to content

ShapelyDeprecationWarning in graph.py #19

@martacki

Description

@martacki

There's a new ShapelyDeprecationWarning in graph.py that will cause an error in Shapely 2.0. Not sure why it appears and therefore didn't find a way to fix it.

vresutils/graph.py:529: ShapelyDeprecationWarning:

__len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the  number of parts of a multi-part geometry.

I think the warning appears somewhere here: https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py#L528-L530

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions