postgresql - Large Sample Database with Latitudes and Longitutes -
i looking large
sample dataset (preferably in csv format) has lat/lng
coordinates.
postgresql,postgis
following comment, can use html page generate many points want.
<!doctype html> <html lang="en-au"> <head> <meta charset="utf-8"> <meta http-equiv="pragma" content="no-cache" /> </head> <body> <script type="text/javascript"> function generatepoints(){ var pointstogenerate = document.getelementbyid('pointstogenerate').value; var output = ''; (i=0;i<pointstogenerate;i++) { var multiplier = 10000; var latitude=(math.random()*(90*multiplier))/multiplier; var longitude=(math.random()*(180*multiplier))/multiplier; latitude *=(math.floor(math.random()*2) == 1)?1:-1; longitude *=(math.floor(math.random()*2) == 1)?1:-1; output = output + latitude + ',' + longitude + '\n'; } document.getelementbyid('output').innerhtml = output; } </script> <input type="text" id="pointstogenerate" value="1000" /> <input type="button" onclick="generatepoints()" value="generate points" /> <div><textarea cols=40 rows=10 id="output"></textarea></div> </body> </html>
Comments
Post a Comment