I'm having trouble generating grids with Google Earth Engine. I've managed to succeed with a province but when I've drawn a shapefile from which I'd like to have grids generated, I don't know what to do next. Any help would be very appreciated. Thank you!

asked 28 Nov, 11:28

hugobennetts's gravatar image

hugobennetts
111
accept rate: 0%


Hello Hugo,

If you have a shapefile ( *.shp ) of your own that you want to use to generate the grids then you can upload the shapefile as an Asset to Google Earth Engine. Please follow this guide that explains how to upload a shapefile as an asset.

If instead you have a KML file then you need to upload it using a Google Drive Fusion Table ( follow the second part of the guide ).

Then you need to specify in the script that you want to use a Feature Collection ( asset/shp or Fusion Table-kml) rather than a country in the first option of the script (LINK TO THE SCRIPT). There you choose the first option "Use Feature Collection (Fusion table/Asset)"

alt text

When you choose this first option there is a text field that gets enable where you can set the path to the asset in your user folder ( or to an asset that has been shared by another user). This path will look something like this : users/YOU_USERNAME/NAME_OF_ASSET . For instance you can test with one of mine users/sanchezpaus/ITA_adm1 . If instead of an asset (shapefile) you are using a Fusion Table (imported KML) you need to get the ID of the Fusion Table. You can get it in the Google Drive Fusion Table interface, in File->About this table. Then in the text field you will have to use the prefix ft: followed by the Fusion Table ID. Here another example you can use : ft:1zlbOD-QPIEF-cNw-eclaIrze70MXN6jJG4GRRO0X

alt text

Afterwards you can proceed with the rest of the procedure to generate the grid ( important to set teh right EPSG code to get a good distance between plots ).

Let me know if this answered the question and if you have any other problems with the tool.

permanent link

answered 29 Nov, 14:21

collectearth's gravatar image

collectearth ♦
65515
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×171

question asked: 28 Nov, 11:28

question was seen: 65 times

last updated: 29 Nov, 14:21