geemap

gee-communityMIT活跃维护

用 Python 封装 Google Earth Engine,在 Jupyter/Colab 里做交互式地理空间分析与可视化,省去手动拼 GEE 代码的麻烦。

A Python package for interactive geospatial analysis and visualization with Google Earth Engine.

v0.38.9发布于 2026-10-01 16:02 UTC4,071star +3 / 7 天1,159fork同步于 2026-11-10 17:40 UTC

怎么上手

由 README 提炼,执行前请确认
pip install geemap
硬件要求按 README 说明

README 未说明硬件要求;geemap 基于 Jupyter 环境运行,计算由 Google Earth Engine 云端完成,本地无需 GPU 显存。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

在 Jupyter 里交互式分析和可视化 Google Earth Engine 数据的 Python 包

用 Python 封装 Google Earth Engine,在 Jupyter/Colab 里做交互式地理空间分析与可视化,省去手动拼 GEE 代码的麻烦。

核心能力

  • 用 ipyleaflet 和 ipywidgets 在 Jupyter 中交互式显示 GEE 数据图层
  • 提供 Map.addLayer、Map.setCenter 等仿 JavaScript API 风格的 Python 函数
  • 把 Earth Engine JavaScript 脚本自动转换为 Python 脚本和 Notebook
  • 用绘图工具和 Inspector 交互检索 GEE 数据并做分区统计
  • 导出 Image 和 ImageCollection 为 GeoTIFF,导出 FeatureCollection 为 shp、csv 等格式

容易踩的坑

需要自行注册并认证 Google Earth Engine 账号才能调用 GEE 服务;交互式地图依赖 Jupyter 环境(ipyleaflet、ipywidgets),在纯脚本或非 Notebook 环境无法显示;README 未说明默认端口等细节。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.38.9
  1. v0.38.9最新正式版2026-10-01 · 2026-10-01 16:02 UTC

    What's Changed

    Full Changelog: https://github.com/gee-community/geemap/compare/v0.38.8...v0.38.9

  2. v0.38.82026-09-24 · 2026-09-24 19:01 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/gee-community/geemap/compare/v0.38.7...v0.38.8

  3. v0.38.72026-09-18 · 2026-09-18 21:38 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/gee-community/geemap/compare/v0.38.6...v0.38.7

  4. v0.38.62026-09-11 · 2026-09-11 00:02 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/gee-community/geemap/compare/v0.38.5...v0.38.6

  5. v0.38.6rc1pre-release2026-09-03 · 2026-09-03 22:07 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/gee-community/geemap/compare/v0.38.5...v0.38.6rc1

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    geemap

    Open in Colab Open in Binder Open In Studio Lab image image Conda Recipe image Conda Downloads image image image image pre-commit.ci status

    logo

    A Python package for interactive geospatial analysis and visualization with Google Earth Engine

    Join our Discord server 👇

    Acknowledgment: The geemap project is supported by the National Aeronautics and Space Administration (NASA) under Grant No. 80NSSC22K1742 issued through the Open Source Tools, Frameworks, and Libraries 2020 Program.

    Announcement

    The book Earth Engine and Geemap: Geospatial Data Science with Python, written by Qiusheng Wu, has been published by Locate Press in July 2023. If you're interested in purchasing the book, please visit this URL: https://locatepress.com/book/gee.

    book

    Introduction

    Geemap is a Python package for interactive geospatial analysis and visualization with Google Earth Engine (GEE), which is a cloud computing platform with a multi-petabyte catalog of satellite imagery and geospatial datasets. During the past few years, GEE has become very popular in the geospatial community and it has empowered numerous environmental applications at local, regional, and global scales. GEE provides both JavaScript and Python APIs for making computational requests to the Earth Engine servers. Compared with the comprehensive documentation and interactive IDE (i.e., GEE JavaScript Code Editor) of the GEE JavaScript API, the GEE Python API has relatively little documentation and limited functionality for visualizing results interactively. The geemap Python package was created to fill this gap. It is built upon ipyleaflet and ipywidgets, and enables users to analyze and visualize Earth Engine datasets interactively within a Jupyter-based environment.

    Geemap is intended for students and researchers, who would like to utilize the Python ecosystem of diverse libraries and tools to explore Google Earth Engine. It is also designed for existing GEE users who would like to transition from the GEE JavaScript API to Python API. The automated JavaScript-to-Python conversion module of the geemap package can greatly reduce the time needed to convert existing GEE JavaScripts to Python scripts and Jupyter notebooks.

    For video tutorials and notebook examples, please visit the examples page. For complete documentation on geemap modules and methods, please visit the API Reference.

    If you find geemap useful in your research, please consider citing the following papers to support my work. Thank you for your support.

    • Wu, Q., (2020). geemap: A Python package for interactive mapping with Google Earth Engine. The Journal of Open Source Software, 5(51), 2305. https://doi.org/10.21105/joss.02305
    • Wu, Q., Lane, C. R., Li, X., Zhao, K., Zhou, Y., Clinton, N., DeVries, B., Golden, H. E., & Lang, M. W. (2019). Integrating LiDAR data and multi-temporal aerial imagery to map wetland inundation dynamics using Google Earth Engine. Remote Sensing of Environment, 228, 1-13. https://doi.org/10.1016/j.rse.2019.04.015 (pdf | source code)

    Check out the geemap workshop presented at the GeoPython Conference 2021. This workshop gives a comprehensive introduction to the key features of geemap.

    geemap workshop

    Key Features

    Below is a partial list of features available for the geemap package. Please check the examples page for notebook examples, GIF animations, and video tutorials.

    • Convert Earth Engine JavaScripts to Python scripts and Jupyter notebooks.
    • Display Earth Engine data layers for interactive mapping.
    • Support Earth Engine JavaScript API-styled functions in Python, such as Map.addLayer(), Map.setCenter(), Map.centerObject(), Map.setOptions().
    • Create split-panel maps with Earth Engine data.
    • Retrieve Earth Engine data interactively using the Inspector Tool.
    • Interactive plotting of Earth Engine data by simply clicking on the map.
    • Convert data format between GeoJSON and Earth Engine.
    • Use drawing tools to interact with Earth Engine data.
    • Use shapefiles with Earth Engine without having to upload data to one's GEE account.
    • Export Earth Engine FeatureCollection to other formats (i.e., shp, csv, json, kml, kmz).
    • Export Earth Engine Image and ImageCollection as GeoTIFF.
    • Extract pixels from an Earth Engine Image into a 3D numpy array.
    • Calculate zonal statistics by group.
    • Add a customized legend for Earth Engine data.
    • Convert Earth Engine JavaScripts to Python code directly within Jupyter notebook.
    • Add animated text to GIF images generated from Earth Engine data.
    • Add colorbar and images to GIF animations generated from Earth Engine data.
    • Create Landsat timelapse animations with animated text using Earth Engine.
    • Search places and datasets from Earth Engine Data Catalog.
    • Use timeseries inspector to visualize landscape changes over time.
    • Export Earth Engine maps as HTML files and PNG images.
    • Search Earth Engine API documentation within Jupyter notebooks.
    • Import Earth Engine assets from personal account.
    • Publish interactive GEE maps directly within Jupyter notebook.
    • Add local raster datasets (e.g., GeoTIFF) to the map.
    • Perform image classification and accuracy assessment.
    • Extract pixel values interactively and export as shapefile and csv.