Regular squared grid

to sample square plots

Use the code below or click here.

var x = ee.List.sequence(91.0,110.0,0.5)
var y = ee.List.sequence(5.0,30.0,0.5)
var features = ee.FeatureCollection(x.map(function(xcor){
    var feat = ee.FeatureCollection(y.map(function(ycor){
    return ee.Feature(ee.Geometry.Point([xcor,ycor]).buffer(5000).bounds())
}))
return feat
})).flatten()


print(features)
Map.addLayer(features)
Advertisements

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