update app.py
Browse files
app.py
CHANGED
@@ -557,7 +557,11 @@ if file_upload is not None:
|
|
557 |
except Exception as e:
|
558 |
st.error(f"Error parsing KML file: {str(e)}")
|
559 |
|
|
|
560 |
if not locations_df.empty:
|
|
|
|
|
|
|
561 |
if 'geometry' in locations_df.columns:
|
562 |
if shape_type.lower() == "point":
|
563 |
locations_df['latitude'] = locations_df['geometry'].y
|
|
|
557 |
except Exception as e:
|
558 |
st.error(f"Error parsing KML file: {str(e)}")
|
559 |
|
560 |
+
# Display uploaded data preview and map
|
561 |
if not locations_df.empty:
|
562 |
+
st.write("Preview of Uploaded Data:")
|
563 |
+
st.dataframe(locations_df.head())
|
564 |
+
|
565 |
if 'geometry' in locations_df.columns:
|
566 |
if shape_type.lower() == "point":
|
567 |
locations_df['latitude'] = locations_df['geometry'].y
|