Ensure polygons have at least three points
This commit is contained in:
parent
671caf01bd
commit
de2e3aed9b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def each_poly(parts: list[str]):
|
|||
else:
|
||||
points.append(parse_coord(part))
|
||||
|
||||
if len(points) > 0:
|
||||
if len(points) >= 3:
|
||||
yield shapely.Polygon(points)
|
||||
|
||||
class SPCOutlookArea(DatabaseTable):
|
||||
|
|
Loading…
Add table
Reference in a new issue