Compare commits

..

2 commits

View file

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