Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geemap module: extract_values_to_points(filepath) function export bugs #2022

Closed
zyang91 opened this issue May 27, 2024 · 1 comment · Fixed by #2023
Closed

geemap module: extract_values_to_points(filepath) function export bugs #2022

zyang91 opened this issue May 27, 2024 · 1 comment · Fixed by #2023
Labels
bug Something isn't working

Comments

@zyang91
Copy link

zyang91 commented May 27, 2024

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)

Point I plot:
Screenshot 2024-05-27 180151

Output CSV:
Screenshot 2024-05-27 180219

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')
@zyang91 zyang91 added the bug Something isn't working label May 27, 2024
@giswqs giswqs linked a pull request May 27, 2024 that will close this issue
@giswqs
Copy link
Member

giswqs commented May 27, 2024

Thank you for report. This bug has been fixed in #2023. Run geemap.update_package() to install the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants