Zeel commited on
Commit
913bc56
1 Parent(s): ebf3d90

adjust for many polygons.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -518,8 +518,8 @@ stats_df = pd.DataFrame(
518
  {
519
  "Area (m^2)": geometry_gdf.area.item(),
520
  "Perimeter (m)": geometry_gdf.length.item(),
521
- "Points": json.loads(geometry_gdf.to_crs(4326).to_json())["features"][0]["geometry"]["coordinates"],
522
- }
523
  )
524
  st.write("<h3><div style='text-align: center;'>Geometry Metrics</div></h3>", unsafe_allow_html=True)
525
  # st.markdown(
 
518
  {
519
  "Area (m^2)": geometry_gdf.area.item(),
520
  "Perimeter (m)": geometry_gdf.length.item(),
521
+ "Points": str(json.loads(geometry_gdf.to_crs(4326).to_json())["features"][0]["geometry"]["coordinates"]),
522
+ },
523
  )
524
  st.write("<h3><div style='text-align: center;'>Geometry Metrics</div></h3>", unsafe_allow_html=True)
525
  # st.markdown(