giswqs
qgis-earthengine-examples
Python

A collection of 300+ Python examples for using Google Earth Engine in QGIS

Last updated Jun 30, 2026
985
Stars
283
Forks
1
Issues
0
Stars/day
Attention Score
44
Language breakdown
Python 80.9%
Jupyter Notebook 18.6%
JavaScript 0.5%
โ–ธ Files click to expand
README

qgis-earthengine-examples

License: MIT

A collection of 290+ Python examples for using Google Earth Engine in QGIS

Contact: Qiusheng Wu ()

1. Description

This repository is a collection of 290+ Python examples for the Google Earth Engine plugin for QGIS. I developed these Python examples by converting all the JavaScript examples (except those not yet supported by plugin) from the Google Earth Engine API Documentation. Additionally, some examples were adapted from Google Earth Engine plugin and the Earth Engine API examples. Kudos to GEE Community for developing this amazing Google Earth Engine plugin for QGIS.

2. Usage

Step 6: Click the Run script* button on the Python Editor to execute the script.
  • Step 7: Zoom in/out the QGIS Canvas to inspect the results.

3. Add QGIS Basemaps

Click the Run script* button on the Python Editor to execute the script. This will add many basesmaps as XYZ tiles to QGIS. Select and double click any basemap under XYZ Ttiles to be added to QGIS Canvas. See the screenshot below.
  • Alternatively, you can install the QGIS QuickMapServices plugin. After installing the plugin, go to QGIS -- Web --QuickMapServices -- Settings -- More services -- Get contributed pack -- Save_.
QGIS Basemaps

4. Earth Engine QGIS Plugin Demo

qgis-gee-demo

5. Earth Engine and Folium Interactive Mapping

If you do not have QGIS installed on your computer, you can try Earth Engine API and the folium library for interactive mapping. A Jupyter notebook example can be found here.

6. QGIS Examples

The Table of Contents below mimics the structure of the Google Earth Engine API Documentation. I strongly encourage you to check out the API Documentation if you need an in-depth explanation of each Python example. Please note that the list below does not include all the Python examples contained in this repository. You are welcome to explore the repository and find more examples to suit your needs.

Get Started

Machine Learning

  • Supervised Classification Algorithms
* Classification and Regression Trees (CART) | Support Vector Machine (SVM) | Confusion Matrix
  • Unsupervised Classification Algorithms
* KMeans Clustering

Image

* Band statistics (min, max, mean, std) | Image statistics by band | Extract value to points | Rename bands | Clipping | Find image by path and row | Get image resolution | Get image extent | Set image properties | Select bands | Convert bands to ImageCollection | Reclassify | Composite bands | Image smoothing | Download image | Cell statistics | Image patch area | Get image id | Get band name and type | Filtering by calendar range

ImageCollection

* Get image centroid | Convert ImageCollection to Image | Sort by cloud and date | Filtering by metadata | Filtering by band names | Select image by index | Creating monthly imagery

Geometry, Feature, FeatureCollection

* Add new attribute | Add area column | Add random value column | Single column statistics | Multiple column statistics | Simplify polygons | Column statistics by group | Select by location | Select by attributes | Select by strings | Vector symbology | Merge FeatureCollection | Search by buffer distance | Select columns | Mimimum bounding geometry | Clipping polygons | Extract image by polygon

Reducer

* Statistics by group | Zonal Statistics

Join

Array

Specialized Algorithms

  • Landsat Algorithms
* Radiance | Surface Reflectance | Simple cloud score | Simple composite * Resampling | Reducing Resolution * Center-pivot Irrigation Detector

Asset Management

How Earth Engine Works

Filter

Visualization

* NDVI symbology | NDWI symbology | Landsat symbology | NWI wetlands symbology | Color by attribute | Random color visualizer

Datasets

* Large Scale International Boundary Polygons (LSIB) * TIGER: US 2018 Census Counties * TIGER: US 2018 Census States * TIGER: US 2016 Census Roads * TIGER: US 2010 Census Blocks * TIGER: US Census 2010 Census Tracts + Demographic Profile 1 aggregate statistics * TIGER: US Census 2010 5-digit ZIP Code Tabulation Areas * GLIMS: Global Land Ice Measurements from Space * USGS Watershed Boundary Datasets * USA EPA Ecoregions * RESOLVE Ecoregions * World Database on Protected Areas (WDPA) * WRI Global Power Plant Database * Landsat WRS-2 grid

Tutorials

Gena's Examples

ยฉ 2026 GitRepoTrend ยท giswqs/qgis-earthengine-examples ยท Updated daily from GitHub