geemap module: extract_values_to_points(filepath) function export bugs
zyang91 opened this issue · 1 comments
zyang91 commented
Environment Information
Python version 3.12
geemap version 0.32.1
Description
I added the Google Earth Engine Landsat data to Geemap, manually plotted some random points of interest on the map interface, and extracted the CSV file for future reference.
The output CSV file has the wrong latitude and longitude (It seems that the actual point longitude are in the latitude column and the actual Latitude in the longitude column)
What I Did
import geemap
import ee
Map = geemap.Map(center=[40, -100], zoom=4)
landsat7 = ee.Image('LANDSAT/LE7_TOA_5YEAR/1999_2003').select(
['B1', 'B2', 'B3', 'B4', 'B5', 'B7']
)
landsat_vis = {'bands': ['B3', 'B2', 'B1'], 'gamma': 1.4}
Map.addLayer(landsat7, landsat_vis, "Landsat")
Map.set_plot_options(add_marker_cluster=True, overlay=True)
Map.extract_values_to_points('samples.csv')