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)

Leave a Reply