I have a world map. I need random point geometry. So, how can I randomly generate point coordinates? Any programming language. Also, I am using SRID
Any programming language.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
With some Python:
from random import uniform x, y = uniform(-180,180), uniform(-90, 90)
or for a loop:
def newpoint(): return uniform(-180,180), uniform(-90, 90) points = (newpoint() for x in xrange(10)) for point in points: print point