Compare commits

..

No commits in common. "12442ad084fe16f18bf0934a0d89bed3fcc583ac" and "671caf01bd0b4175f05b2af7a2f0abd5a0703bba" have entirely different histories.

View file

@ -78,11 +78,13 @@ def each_poly(parts: list[str]):
for part in parts: for part in parts:
if part == '99999999': if part == '99999999':
continue points.append(points[0])
yield shapely.Polygon(points)
points = list()
else: else:
points.append(parse_coord(part)) points.append(parse_coord(part))
if len(points) >= 3: if len(points) > 0:
yield shapely.Polygon(points) yield shapely.Polygon(points)
class SPCOutlookArea(DatabaseTable): class SPCOutlookArea(DatabaseTable):