Compare commits
2 commits
671caf01bd
...
12442ad084
Author | SHA1 | Date | |
---|---|---|---|
12442ad084 | |||
de2e3aed9b |
1 changed files with 2 additions and 4 deletions
|
@ -78,13 +78,11 @@ def each_poly(parts: list[str]):
|
|||
|
||||
for part in parts:
|
||||
if part == '99999999':
|
||||
points.append(points[0])
|
||||
yield shapely.Polygon(points)
|
||||
points = list()
|
||||
continue
|
||||
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