Random Points

Generates points that are randomly distributed

Use ee.FeatureCollection.randomPoints to generate random points within a specific region.

Example below with a link here.

// Define the region in which to compute random points.
var region = ee.Geometry.Rectangle(-0.289, 39.165,-0.297 ,39.170);

// Data
// Create 1000 random points in the region.
var randomPoints = ee.FeatureCollection.randomPoints(region,500);

// Add to map
Map.addLayer(randomPoints, {}, 'random points');

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