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
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").Tto
overlaps = gdf.sindex.query(gdf.geometry, predicate="overlaps").T