I have a bounding box of 1000m x 1000m. I randomly generate 10000 points (sites) inside it. Now, how can I create 'n' polygons (geometries) within the bounding box based on a given constrain.
The constrain could be anything. For example:
- number of sites inside each polygon are same for all polygons
- sum of distances from points inside the geometry to the centroid of geometry are same for all polygons
- let's say, I assign a weight to each site then constrain i sum of weights inside each polygon are same for all polygons
- area of each polygon is same
- etc.
Is there a way to generate such a geometry?
P.S. -- would be great if someone can also point me in the right direction and then give down vote.