geoms: an other one

pull/1548/head
Kaalleen 2022-05-17 17:51:16 +02:00
rodzic 87f328ec85
commit 1b0d46af36
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -62,7 +62,7 @@ def _get_pattern_points(first, second, pattern):
if isinstance(intersection, shgeo.Point):
points.append(Point(intersection.x, intersection.y))
if isinstance(intersection, shgeo.MultiPoint):
for point in intersection:
for point in intersection.geoms:
points.append(Point(point.x, point.y))
# sort points after their distance to first
points.sort(key=lambda point: point.distance(first))