Changes between Initial Version and Version 1 of Ticket #4850
- Timestamp:
- 02/14/21 17:50:05 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified Ticket #4850 – Description
initial v1 21 21 {{{ 22 22 -- no weight 23 SELECT ST_ClusterKMeans( geom, 5) OVER() AS cid, parcel_id, population23 SELECT ST_ClusterKMeans(ST_Centroid(geom), 5) OVER() AS cid, parcel_id, population 24 24 FROM parcels 25 25 ORDER BY cid, parcel_id; 26 26 27 27 -- yields 28 29 28 cid | parcel_id | population 30 29 -----+-----------+------------ … … 44 43 -- with weight by population 45 44 46 SELECT ST_ClusterKMeans(ST_Force3DM( geom, population), 5) OVER() AS cid, parcel_id, population45 SELECT ST_ClusterKMeans(ST_Force3DM(ST_Centroid(geom), population), 5) OVER() AS cid, parcel_id, population 47 46 FROM parcels 48 47 ORDER BY cid, parcel_id; … … 59 58 4 | 005 | 1 60 59 (7 rows) 60 61 61 }}} 62 62