Skip to content

lkkmills/earthengine-gef-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

earthengine-gef-tutorials

This repository is a collection of tutorials and guides for GEF data collection on Google Earth Engine (GEE). Tutorials are sorted by project ID, and they walk through the collection process for each relevant boundary. Some tutorials require imported data, and those datasets can be found in the "data" folder.

Table of Contents:

How to use this repository

  1. Copy and paste the tutorials into your GEE code editor.
  2. Import data where specified (either download yourself or refer to the "data" folder).
  3. Use these scripts as building blocks to write your own scripts.

Working with geoBoundaries data

How to download data from geoBoundaries

  1. Navigate to the geoBoundaries website.
  2. Click "Download Data".
  3. Filter by the ISO-3 code of the country (Vietnam = VNM, Cambodia = KHM, Laos = LAO).
  4. Download the administrative level you are looking for (none of our data collection will use ADM0 or ADM1).

image

How to visualize data from geoBoundaries

  1. Navigate to the geoBoundaries website.
  2. Click "Visualize Data".
  3. Choose a country (ex. Laos).
  4. Compare the boundaries for different ADM levels (I usually compare ADM1 and ADM2).

image

  1. Scroll down the page to "Matching". Here, you can see the names of all the ADM1 boundaries versus all the names of ADM2 boundaries.

image

Why is this tool helpful?

For our data collection, we will only be using ADM2 and higher. If you read a document report and want to know which administrative level a boundary belongs to, this tool helps you visualize and check.

Uploading data to Google Earth Engine

Read: Importing Table Data

Using data within the GEE catalog

As an example, we'll import the World Database on Protected Areas (WDPA) from the data catalog.

"The World Database on Protected Areas (WDPA) is the most up-to-date and complete source of information on protected areas, updated monthly with submissions from governments, non-governmental organizations, landowners, and communities. It is managed by the United Nations Environment Programme's World Conservation Monitoring Centre (UNEP-WCMC) with support from IUCN and its World Commission on Protected Areas (WCPA)."

Features & FeatureCollections

Earth Engine hosts a variety of table datasets. To load a table dataset, provide the table ID to the FeatureCollection constructor.

For example, to load WDPA data, copy the Earth Engine snippet from here:

https://developers.google.com/earth-engine/datasets/catalog/WCMC_WDPA_current_polygons

The Earth Engine snippet is the following:

ee.FeatureCollection("WCMC/WDPA/current/polygons")

Code block that can be copied directly into GEE:

var dataset = ee.FeatureCollection('WCMC/WDPA/current/polygons');

var visParams = {
  palette: ['2ed033', '5aff05', '67b9ff', '5844ff', '0a7618', '2c05ff'],
  min: 0.0,
  max: 1550000.0,
  opacity: 0.8,
}; // Visualization parameters

var image = ee.Image().float().paint(dataset, 'REP_AREA');

Map.setCenter(41.104, -17.724, 6);
Map.addLayer(image, visParams, 'WCMC/WDPA/current/polygons');
Map.addLayer(dataset, null, 'for Inspector', false);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published