Created
April 20, 2018 17:06
-
-
Save dbauszus-glx/0a7f0ced5b4228d9561116f5fb10a0c1 to your computer and use it in GitHub Desktop.
Cluster comparisson
This file contains 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
SELECT | |
dbscan_cid, | |
st_union(geom) geom | |
FROM ( | |
SELECT | |
ST_ClusterDBSCAN(geom, 0.23, 1) OVER () dbscan_cid, | |
geom | |
FROM gb_retailpoint | |
) kmeans GROUP BY dbscan_cid; | |
SELECT | |
kmeans_cid, | |
st_union(geom) geom | |
FROM ( | |
SELECT | |
ST_ClusterKMeans(geom, 50) OVER () kmeans_cid, | |
geom | |
FROM gb_retailpoint | |
) kmeans GROUP BY kmeans_cid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment