Select to view content in your preferred language

Simple random polygon question

4556
4
07-27-2013 03:57 PM
by Anonymous User
Not applicable
Original User: luke.kaim

Hi Everyone,

Is there a way to create random polygons in ArcGIS or by using python. I am trying to finish my masters and my advisor wants me to create simple random polygons to make test data, but I am a little lost how to actually go about doing this. Creating simple polygons doesn't seem to be that easy. Things that I have already tried, but don't seem to work are: http://www.cosy.sbg.ac.at/~held/projects/rpg/rpg.html and https://github.com/aewallin/randompolygon. I was wondering if anyone else had any other suggestions.


Thank you,
Luke Kaim

Thank you
Luke Kaim (SIE)
Lucas.Kaim@maine.edu
(914)263-7866
0 Kudos
4 Replies
GerryGabrisch
Frequent Contributor
Do you need to have a randomly shaped polygon of a specific size?  If so, that would require some programming. 

What if  you create a fishnet of rectangular polygons (using the create fishnet tool in Toolbox, and a new attribute (type double) for the fishnet, populate the new attribute with random values, figure out your sample size, then select that many polygons from the fishnet?
0 Kudos
by Anonymous User
Not applicable
Original User: rzufelt

Could also CreateRandomPoints, then put a buffer on them.  Could also make the buffer size "random" so that it has variable sized polygons.

Of course, would all be cirlcles, except for where they overlapp depending on your dissolve settings.

R_
0 Kudos
ChrisSnyder
Honored Contributor
A poor mans guide to building a "randomly shapped polygon":

Step 1. Generate some random points - using the CreateRandomPoints tool.
Step 2. Use the MinimumBoundingGeometry tool to build a convex hull around each set of points.
0 Kudos
DanPatterson_Retired
MVP Emeritus
create random points, determine their convex and/or concave hull...ask your advisor what algorithms he uses 🙂  that is what they are there to do ... "advise"
0 Kudos