Uncomment the following line to install geemap if needed.
# !pip install -U geemap
import os
import geemap
Download a sample dataset.
url = 'https://github.com/giswqs/data/raw/main/raster/srtm90.tif'
image = 'srtm90.tif'
if not os.path.exists(image):
geemap.download_file(url, image)
Plot the raster image in 2D.
geemap.plot_raster(image, cmap='terrain', figsize=(15, 10))
Plot the raster image in 3D.
geemap.plot_raster_3d('srtm90.tif', factor=2, cmap='terrain', background='gray')