Private
Public Access
1
0

using models in tasks.py

This commit is contained in:
Sander Roosendaal
2022-07-11 20:30:05 +02:00
parent 7f3d80dc4e
commit 3d62772ed2
4 changed files with 81 additions and 191 deletions

View File

@@ -555,6 +555,7 @@ def polygon_coord_center(polygon):
def polygon_to_path(polygon):
points = GeoPoint.objects.filter(polygon=polygon).order_by("order_in_poly")
s = []
for point in points:
s.append([point.latitude, point.longitude])