I want to generate a number of random points over a given area, e.g. all land masses of the world. For this I have coded
var fcLandMasses = ee.FeatureCollection('ft:1l9VK5FJ4_hiH2gHjr0MtxwB-CrNEqOE5EBlW6Q');
var fcRandomPoints = ee.FeatureCollection.randomPoints(fcLandMasses,numberOfPoints,seed);
where you need to set
numberOfPoints to the number of points you want to generate and
seed to an arbitrary non-negative integer to ensure repeatability.
How can I clean up the FeatureCollection
fcRandomPoints such that points located too close to each other (i.e. within a certain buffer) are removed?
I think there are two general choices:
- Keeping one (e.g. the first-appearing) point of points within that buffer.
- Keeping the average of all points within that buffer.
I'd like to follow option 2, which will probably include a mapping over
What is the most efficient way to implement this?