Zeel commited on
Commit
1723772
1 Parent(s): 522f037

Stats in km

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -213,9 +213,9 @@ perimeter = selected_geometry_gdf.length.values[0]
213
 
214
  stats_df = pd.DataFrame(
215
  {
216
- "Area (m^2)": [area],
217
- "Perimeter (m)": [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
  )