17

I have a polygon layer that describes a constraint; I wish to add points within this area. I want to add as many points as possible, but they must have a minimum spacing between them. Is it possible to do this with GIS?

To clarify, it would be best if an ordered grid could be generated, as this would guarantee the most points. However the constraint would rarely allow this, and it may be preferable to remove points to allow an offset to better fit within the constraint.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Matthew Snape
  • 6,127
  • 2
  • 27
  • 48
  • Seems to be two questions. Do you want an algorithm to do this outside of software? Or do you want to know what GIS system can do this? – Brad Nesom Jan 04 '11 at 16:13
  • 1
    Are the points constrained so that they must be >= the minimum distance from the polygon's boundary? If, so the question might be more clearly stated as: How can I pack the maximum number of circles into a polygon? – Kirk Kuykendall Jan 05 '11 at 18:13
  • Somehow related: http://gis.stackexchange.com/q/4927/162 – julien Jan 07 '11 at 08:10
  • I have exactly the same problem. Did you finally find a solution? –  Feb 19 '13 at 13:48
  • @Simran I never actually went ahead with any solution. I was trying to optimize wind turbine locations within a footprint. On reflection I think it is better in my case to generate every possible configuration and then measure the quality of the solution. If you can generate every possible solution that is surely better than a genetic algorithm that only gives one solution (however optimal) that may not be the best. – Matthew Snape Feb 22 '13 at 15:12
  • I have the same problem, and I don't know where to look. Somehow triangle looks right but is there any compact theory in geometry about this? –  Sep 16 '13 at 12:43
  • 1
    @qva No there is not, because the exact solutions that can be found are asymmetrical and difficult to obtain even for simple shapes like rectangles. The best computing methods I have found are based on spatial simulated annealing (and they work very well, even though they require a lot of computation). Using them I have looked at solutions for many polygons of varying shapes. It is clear that the polygon boundaries control the solutions close to the boundaries; deep within the interior they tend to approximate hexagonal packings of disks. – whuber Sep 16 '13 at 14:21
  • What about constrained triangulation with a minimal area of triangle, and take their centroids? The Triangle library does this – mdsumner Oct 07 '18 at 21:13