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

To download an ee.FeatureCollection as a shapefile #263

Closed
seeyouinsight opened this issue Jan 12, 2021 · 4 comments
Closed

To download an ee.FeatureCollection as a shapefile #263

seeyouinsight opened this issue Jan 12, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@seeyouinsight
Copy link

To download an ee.FeatureCollection as a shapefile
geemap.ee_to_csv
命令对不上

@seeyouinsight seeyouinsight added the bug Something isn't working label Jan 12, 2021
@giswqs
Copy link
Member

giswqs commented Jan 12, 2021

Are you looking for ee_to_shp()?

@ErikSeras
Copy link
Contributor

Is it possible for the results of geemap.ee_to_shp() to be compressed into a zip file?

@giswqs
Copy link
Member

giswqs commented Jan 12, 2021

@ErikSeras The shapefile is actually downloaded as a zip file, which is automatically deleted after being decompressed. Any reason you want to keep the zip file?

giswqs added a commit that referenced this issue Jan 12, 2021
@giswqs
Copy link
Member

giswqs commented Jan 12, 2021

I have added a keep_zip parameter to ee_to_shp(). You can set keep_zip=True if you want to retain the zip file.

geemap.ee_to_shp(countries, filename='countries_new.shp', keep_zip=True)

@giswqs giswqs closed this as completed Jan 14, 2021
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

No branches or pull requests

3 participants