Ensure polygons have at least three points

This commit is contained in:
XANTRONIX 2025-03-16 01:15:35 -04:00
parent 671caf01bd
commit de2e3aed9b

View file

@ -84,7 +84,7 @@ def each_poly(parts: list[str]):
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):