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.
- How to use this repository
- Working with geoBoundaries data
- Uploading data into Google Earth Engine
- Using data within the GEE catalog
- Copy and paste the tutorials into your GEE code editor.
- Import data where specified (either download yourself or refer to the "data" folder).
- Use these scripts as building blocks to write your own scripts.
- Navigate to the geoBoundaries website.
- Click "Download Data".
- Filter by the ISO-3 code of the country (Vietnam = VNM, Cambodia = KHM, Laos = LAO).
- Download the administrative level you are looking for (none of our data collection will use ADM0 or ADM1).
- Navigate to the geoBoundaries website.
- Click "Visualize Data".
- Choose a country (ex. Laos).
- Compare the boundaries for different ADM levels (I usually compare ADM1 and ADM2).
- Scroll down the page to "Matching". Here, you can see the names of all the ADM1 boundaries versus all the names of ADM2 boundaries.
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.
Read: Importing Table Data
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
- Feature Overview
- FeatureCollection Overview
- Feature and FeatureCollection Visualization
- FeatureCollection Information and Metadata
- Filtering a FeatureCollection
- Mapping Over a FeatureCollection
- Reducing a FeatureCollection
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);