regular grid

Create a regular grid in GEE

use the code below or follow this url

var x = ee.List.sequence(91.0,110.0,1)
var y = ee.List.sequence(5.0,30.0,1)
var features = ee.FeatureCollection(x.map(function(xcor){
var feat = ee.FeatureCollection(y.map(function(ycor){
return ee.Feature(ee.Geometry.Point([xcor,ycor]))
}))
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