Skip to content

Geonetworkx is not compatible with shapely 2.x #13

@jospueyo

Description

@jospueyo

The function cascaded_union was removed from shapely 2.x and an error is raised when geonetworkx imports it.

This must be replaced by unary_union which is supposed to do the same. The easiest solution is to replace the import in tools/isochrones.py and utils/voronoi_utils.py:

from shapely.ops import linemerge, polygonize, unary_union as cascaded_union

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions