Spaces:
Sleeping
Sleeping
UjjwalKGupta
commited on
Update app.py
Browse files
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.
|
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()))
|