Stats in km
Browse files
app.py
CHANGED
@@ -213,9 +213,9 @@ perimeter = selected_geometry_gdf.length.values[0]
|
|
213 |
|
214 |
stats_df = pd.DataFrame(
|
215 |
{
|
216 |
-
"Area (
|
217 |
-
"Perimeter (
|
218 |
-
"Centroid (lat, lon)": [f"{lat}, {lon}"],
|
219 |
"Points": np.array(selected_geometry['coordinates']).tolist(),
|
220 |
}
|
221 |
)
|
|
|
213 |
|
214 |
stats_df = pd.DataFrame(
|
215 |
{
|
216 |
+
"Area (km^2)": [f"{area/1e6:.2f}"],
|
217 |
+
"Perimeter (km)": [f"{perimeter/1e3:.2f}"],
|
218 |
+
"Centroid (lat, lon)": [f"{lat:.6f}, {lon:.6f}"],
|
219 |
"Points": np.array(selected_geometry['coordinates']).tolist(),
|
220 |
}
|
221 |
)
|