Hello Kanchana,
Another option, if you prefer to use Google Earth Engine is to use one of the scripts that we have been using to generate grids. This script has the advantage of being quite fast and easy to adapt to other areas.
The first thing you need to do is to upload the KML file with your boundaries to a Fusion Table. You can follow these instructions to upload the KML. You then need to copy the ID of the table so that you can use it in your script!
The selected part of the URL is the ID of the table.

For instance, I have upload the KML file with boundaries for Spain (obtained from the Global Administrative Areas project ) and this is the result : LINK TO FUSION TABLE PROVINCES OF SPAIN. Make sure that the column types are set to "Text", as Fusion Tables sometimes understands column with names of cities, provinces or areas as Location columns and then you are not able to filter using those columns.
Now, you need to click on this link GEE SCRIPT and adapt it to your needs. Mainly you will need to change:
- Line 5 : set the fusion table ID
using the one that you just uploaded!
- Line 8 : Filter the fusion table
using the column and value that is
relevant to your table
- Line 29 : Set
the distance in meters between plots!
By default is set to 1000 meters
- Line
34 : Set the EPSG code for the
projection of the area that you will
be working on
Once this is fixed you can click on the Run button and a link will appear on the right frame. If you click on that link (starts like https://earthengine.googleapis.com/... ) then a CSV file will be downloaded to your computer.
This will contain data like this:
system:index,latitude,longitude,elevation,slope,aspect,climate,soil,gez
0,37.94540395139881,-6.183373895436064,435,1,171,2,6,22.0
1,37.95440601040461,-6.183029911173734,461,1,184,2,6,22.0
2,37.95413303300725,-6.171660954018713,447,1,163,2,6,22.0
3,37.96475691863039,-6.239539769372606,501,0,301,2,6,22.0
4,37.96448934041179,-6.2281686672070125,477,1,148,2,6,22.0
You can open this in Excel or Libre Office and adpat the columns. By default, the Collect Earth template contains the elevation, slope and aspect attributes. CLimate, Soil and Global Ecologic Zone are attributes ("From CSV") that are used in other surveys such as the Global Pilot Assessment survey.
Let me know if this clarifies your question or just made it sound more complex!