upload shapefile to feature collection

From QGIS to Earth Engine.

step 1: Download the dataset below and extract the data

KHM_adm

Step 2: upload the data to the earth engine

upload1.png

upload2.png

Step 3:  Import the KHM_adm1 data.

upload4

Step 4: Display the layer


// display data
Map.addLayer(khm,{},"administrative boundaries")

Step 5: Use the inspector to investigate the properties

upload5.png

Step 6: Use the filter function to display a single province


// filter for Kampong Thum province
var KampongThum = khm.filter(ee.Filter.eq("NAME_1","Kâmpóng Thum"))

// display data
Map.addLayer(KampongThum,{},"KampongThum")

upload6.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s