using models in tasks.py
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user