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)
Thanks for this code. How can we create a rectangular grids of lets say 100-meter by 100-meter.
Something like the shown grids here: https://developers.google.com/earth-engine/tutorials/community/drawing-tools
LikeLike