UjjwalKGupta commited on
Commit
7d21b47
·
verified ·
1 Parent(s): b786efe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ if uploaded_file is not None:
155
  st.write("It has perimeter of {:.2f} meters.".format(polygon_info['perimeter']))
156
 
157
  #Change geometry of polygon 3D to 2D for ee
158
- gdf.iloc[0].geometry = convert_to_2d_geometry(gdf.iloc[0].geometry)
159
 
160
  #Read KML file
161
  geom_ee_object = ee.FeatureCollection(json.loads(gdf.to_json()))
 
155
  st.write("It has perimeter of {:.2f} meters.".format(polygon_info['perimeter']))
156
 
157
  #Change geometry of polygon 3D to 2D for ee
158
+ gdf.loc[0, "geometry"] = convert_to_2d_geometry(gdf.iloc[0].geometry)
159
 
160
  #Read KML file
161
  geom_ee_object = ee.FeatureCollection(json.loads(gdf.to_json()))