Skip to content

Minor issue with overlaps function #58

Description

@lisawink

I have come across a minor error in geoplanar.overlaps().
ValueError: too many values to unpack (expected 2)

The sindex query outputs an array, so instead of saving as i, j, I suggest saving it as a variable called overlaps. I will submit a pull request for this.

From
i, j = gdf.sindex.query(gdf.geometry, predicate="overlaps").T
to
overlaps = gdf.sindex.query(gdf.geometry, predicate="overlaps").T

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