Get Started¶
This Get Started guide is intended as a quick way to start programming with geemap and the Earth Engine Python API.
Plotting backends¶
Geemap has six plotting backends, including folium, ipyleaflet, plotly, pydeck, kepler.gl, and heremap. An interactive map created using one of the plotting backends can be displayed in a Jupyter environment, such as Google Colab, Jupyter Notebook, and JupyterLab. By default, import geemap
will use the ipyleaflet
plotting backend.
The six plotting backends do not offer equal functionality. The ipyleaflet
plotting backend provides the richest interactive functionality, including the custom toolset for loading, analyzing, and visualizing geospatial data interactively without coding. For example, users can add vector data (e.g., GeoJSON, Shapefile, KML, GeoDataFrame) and raster data (e.g., GeoTIFF, Cloud Optimized GeoTIFF [COG]) to the map with a few clicks (see Figure 1). Users can also perform geospatial analysis using the WhiteboxTools GUI with 468 geoprocessing tools directly within the map interface (see Figure 2). Other interactive functionality (e.g., split-panel map, linked map, time slider, time-series inspector) can also be useful for visualizing geospatial data. The ipyleaflet
package is built upon ipywidgets
and allows bidirectional communication between the front-end and the backend enabling the use of the map to capture user input (source). In contrast, folium
has relatively limited interactive functionality. It is meant for displaying static data only. Note that the aforementioned custom toolset and interactive functionality are not available for other plotting backends. Compared with ipyleaflet
and folium
, the pydeck
, kepler.gl
, and heremap
plotting backend provides some unique 3D mapping functionality. An API key from the Here Developer Portal is required to use heremap
.
To choose a specific plotting backend, use one of the following:
import geemap.geemap as geemap
import geemap.foliumap as geemap
import geemap.deck as geemap
import geemap.kepler as geemap
import geemap.plotlymap as geemap
import geemap.heremap as geemap
Launch Jupyter notebook¶
1 2 |
|
Import libraries¶
1 2 |
|
Create an interactive map¶
1 2 |
|
Add Earth Engine data¶
1 2 3 4 |
|
Set visualization parameters¶
1 2 3 4 5 6 7 8 9 10 |
|
Display data on the map¶
1 2 3 4 |
|
Interact with the map¶
Once data are added to the map, you can interact with data using various tools, such as the drawing tools, inspector tool, plotting tool. Check the video below on how to use the Inspector tool to query Earth Engine interactively.
Created: 2020-08-22