uploading .shp files into the earth engine

Yeah! Goodbye fusion tables!

Step 1: go to this website.

Step 2: Download the shapefile of Thailand.


Step 3: extract the files.

Step 4: Open the file: THA_adm1.shp in Qgis

Step 5: Click the select single feature button.


Step 6: Select your province of interest.

Step 7: click right on the layer and choose save selection as.


Step 8: save the selection as an esri shapefile.


Step 9: Open the code editor.

Step 10: Go to the Assets tab and select table upload


Step 11: Select all the files you just stored.


Step 12: wait for you data ingestion to finish


Step 13: Open the sharing options and share the table.

Step 14: Click on the table and import it.


Step 15: Use the code below to visualise the shapfile and use it for clipping. Fill appropriate values for the ??.

// import the dem
var dem = ee.Image("USGS/SRTMGL1_003")

// clip the dem
var demClip = dem.clip(Phitsanulok)

// set viz parameters
var viz = {min:??,max:??,palette:["??","??","??"]}

// add layer to map
Map.addLayer(demClip,viz,"dem Phitsanulok")

2 thoughts on “uploading .shp files into the earth engine”

  1. What version of QGIS was used; I have QGIS 3.0 and didn’t worked when I tried to duplicate this turorial.
    What is the difference of you Tha-Adm1 and which version of gadms you used; I used gadms 3.6 and got instead a Tha-1 which did not worked when I used to duplicate your findings.
    Why do you still use a code at the end of the tutorial?


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