0

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

2
  • 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".
    – BradHards
    Nov 30, 2013 at 23:07
  • nice idea.... it works Dec 6, 2013 at 10:34

2 Answers 2

1

If you have access to PostGIS, see UserWikiRandomPoint

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.