Create Random Points

590
3
06-13-2018 01:16 PM
BenjaminRichards
New Contributor II

I am trying to create 3 random points with a minimum separation of 75 meters within each polygon of the attached shape file.  I am using Sampling -> Create Random Points

The tool runs to completion with no error messages. However, upon inspection, many of the polygons contain 2 points, not 3.

Any thoughts?

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

Basically those types of algorithms will fit as many as they can within the number of tries it is given and will get as close as it can given the spatial area that it has to work with.

In short... it may try 100 combinations to fit 3 in... each time it fails only producing 1 or 2... then it gives up

Your options...

  • modify the code (not possible with esri scripts).  
  • reduce the inter-point spacing (may not be as mission-critical at all)
  • make the area bigger (probably not)

I have written a similar toolset that does the same thing,

Point Tools for Pro  … # 7

but I likewise tried to get as close as possible to the target number within what I considered a reasonable period of time.  Beyond that... the user can plunk in a point themselves if they can find a fit.

0 Kudos
BenjaminRichards
New Contributor II

Thanks Dan.  The weird thing is that it doesn't throw an error.  If I increase the inter-point spacing from 75m to 100m, it then throws an error.  3rd party tools such as ETGeowizards don't seem to have any trouble placing 3 random points per grid with the 75m inter-point spacing.

0 Kudos
DanPatterson_Retired
MVP Emeritus

100 means that it didn't work

Maybe Ianko's toolbox tries harder to get the job done

0 Kudos