add one more comment

This commit is contained in:
Laura Klünder 2017-11-13 17:55:31 +01:00
parent cd7e68038e
commit 817e800149

View file

@ -187,6 +187,7 @@ def cut_polygon_with_line(polygon: Polygon, line: LineString):
polygon[last.ring] = None
polygon[current.ring] = None
# fix all remaining cut points that refer to the rings we just joined to point the the correct ring
points = deque((cutpoint(item.point, item.polygon, mapping[item.ring])
if (item.polygon == current.polygon and item.ring in mapping) else item)
for item in points)