10 shapefiles
Uncomment the following line to install geemap if needed.
In [1]:
Copied!
# !pip install geemap
# !pip install geemap
In [2]:
Copied!
import geemap
import geemap
In [3]:
Copied!
geemap.show_youtube('OlNlqfj4uHo')
geemap.show_youtube('OlNlqfj4uHo')
In [4]:
Copied!
Map = geemap.Map()
Map
Map = geemap.Map()
Map
Out[4]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [5]:
Copied!
countries_shp = '../data/countries.shp'
countries = geemap.shp_to_ee(countries_shp)
Map.addLayer(countries, {}, 'Countries')
countries_shp = '../data/countries.shp'
countries = geemap.shp_to_ee(countries_shp)
Map.addLayer(countries, {}, 'Countries')
In [6]:
Copied!
states_shp = '../data/us-states.shp'
states = geemap.shp_to_ee(states_shp)
Map.addLayer(states, {}, 'US States')
states_shp = '../data/us-states.shp'
states = geemap.shp_to_ee(states_shp)
Map.addLayer(states, {}, 'US States')
In [7]:
Copied!
cities_shp = '../data/us-cities.shp'
cities = geemap.shp_to_ee(cities_shp)
Map.addLayer(cities, {}, 'US Cities')
cities_shp = '../data/us-cities.shp'
cities = geemap.shp_to_ee(cities_shp)
Map.addLayer(cities, {}, 'US Cities')
In [8]:
Copied!
geemap.ee_to_shp(countries, filename='../data/countries_new.shp')
geemap.ee_to_shp(countries, filename='../data/countries_new.shp')
Generating URL ... Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/1391b86faf955d685a65db3904763e8f-25a06e9af5f4e5abeb8ab7904d57e4ed:getFeatures Please wait ... Data downloaded to /home/runner/work/geospatial-notebooks/geospatial-notebooks/docs/data/countries_new.shp
In [9]:
Copied!
geemap.ee_export_vector(states, filename='../data/states.csv')
geemap.ee_export_vector(states, filename='../data/states.csv')
Generating URL ... Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/c9b5e2525d7240bbe4dc6348a67948e7-1b22627c431cc2e0da4a180bf32e4ff9:getFeatures Please wait ... Data downloaded to /home/runner/work/geospatial-notebooks/geospatial-notebooks/docs/data/states.csv
In [10]:
Copied!
geemap.ee_export_vector(states, filename='../data/states.kml')
geemap.ee_export_vector(states, filename='../data/states.kml')
Generating URL ... Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/6730d90b2e122e6216d1b9ba3f32a3b7-71c94a5a891163d1036423acf2fc17a6:getFeatures Please wait ... Data downloaded to /home/runner/work/geospatial-notebooks/geospatial-notebooks/docs/data/states.kml
In [11]:
Copied!
geemap.ee_export_vector(states, filename='../data/states.kmz')
geemap.ee_export_vector(states, filename='../data/states.kmz')
Generating URL ... Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/65819556b7b5ed746fae78ce16b46e0c-f957fe225a040708193b6ce63c152575:getFeatures Please wait ... Data downloaded to /home/runner/work/geospatial-notebooks/geospatial-notebooks/docs/data/states.kmz
Last update:
2022-03-14