Spaces:
Runtime error
Runtime error
Suchinthana
commited on
Commit
Β·
c8f6cf0
1
Parent(s):
24a1808
logging added
Browse files
app.py
CHANGED
|
@@ -180,6 +180,9 @@ def sort_coordinates_for_simple_polygon(geojson):
|
|
| 180 |
# Update the GeoJSON with sorted coordinates
|
| 181 |
geojson['features'][0]['geometry']['coordinates'][0] = sorted_coordinates
|
| 182 |
|
|
|
|
|
|
|
|
|
|
| 183 |
return geojson
|
| 184 |
|
| 185 |
# Generate static map image
|
|
|
|
| 180 |
# Update the GeoJSON with sorted coordinates
|
| 181 |
geojson['features'][0]['geometry']['coordinates'][0] = sorted_coordinates
|
| 182 |
|
| 183 |
+
#log geojson
|
| 184 |
+
logger.info(f"Sorted GeoJSON: {geojson}")
|
| 185 |
+
|
| 186 |
return geojson
|
| 187 |
|
| 188 |
# Generate static map image
|