Can somebody help me in getting a random point which lies inside multipolygon,i.e I have a multipolygon, then i want to get a random point which lies inside that multipolygon
-
Welcome to gis.SE. I don't know of a single function that does this, but you could perhaps make something using logic like "find bounding box for multipolygon, pick random value between upper and lower bounds of bounding box in each of X and Y direction, check if resulting point intersects the multipolygon (dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/…) and iterate until intersection".– BradHardsNov 30, 2013 at 23:07
-
nice idea.... it works– Muhammad Zeeshan KaramatDec 6, 2013 at 10:34
Add a comment
|
2 Answers
You can use Geospatial Modeling Environment tools (genrandompnts) to generate random data points inside a polygon. This is free tool, and runs with almost all ArcGIS versions.