Skip to content

Commit ae6f2b8

Browse files
author
Sean Gillies
committed
Fix order when unpacking self._initdata in nearest()
1 parent eca5abd commit ae6f2b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shapely/strtree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def nearest(self, geom):
275275

276276
# In a future version of shapely, geometries will be hashable
277277
# and we won't need to reindex like this.
278-
geoms = {id(v): g for g, v in self._initdata}
278+
geoms = {id(v): g for v, g in self._initdata}
279279

280280
@nearest_callback
281281
def callback(value, geom):

0 commit comments

Comments
 (0)