Created
March 14, 2021 06:01
-
-
Save tetrashine/fdd2439b3c25361a618f59691b0c758e to your computer and use it in GitHub Desktop.
Generate random points from reference geometry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE map.cluster_locations ( | |
| id serial PRIMARY KEY, | |
| geom Geometry | |
| ); | |
| INSERT INTO map.cluster_locations (geom) | |
| SELECT (ST_Dump(ST_GeneratePoints(geom, 100000, 1996))).geom as geom | |
| FROM ( | |
| SELECT ST_Union(geom) as geom FROM map.singapore | |
| ) AS s; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment