Opened 16 years ago

Closed 9 years ago

Last modified 7 years ago

#174 closed enhancement (duplicate)

Point Clustering Utility Trigger

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version:
Keywords: Cc: brian252

Description

Generating cluster markers for web user interfaces is v. v. common. Function(s) that can run on insert/update/delete that manage a '*_clustered' table would allow people to delegate that problem to the database.

Change History (7)

in reply to:  description comment:1 by pimpaa, 15 years ago

Replying to pramsey:

Generating cluster markers for web user interfaces is v. v. common. Function(s) that can run on insert/update/delete that manage a '*_clustered' table would allow people to delegate that problem to the database.

Is this to be used with SnapToGrid? If so i think i can try something for this, altought i´ll wait and finish the two other tickets…

George

comment:2 by pramsey, 15 years ago

No, this is a good deal more involved, potentially. k-means clustering perhaps. gridded systems maybe. it needs some thought, to balance out quality of clustering with cpu load.

comment:3 by pramsey, 15 years ago

Milestone: postgis 1.5.0FUTURE

comment:4 by brian252, 14 years ago

Cc: brian252 added

I've tried SnapToGrid in the past and it doesn't look impressive.

I wrote up an implementation of k-means clustering. It's not perfect, but it will work for web-maps. It clustered 22,000 points (tiger.tl_2009_51_cty.pointlm) in about 30 seconds.

The algorithm isn't complicated, but i'm not sure how to set up the mechanics of creating this auxiliary table. It currently runs for n iterations. It would be better to run the clustering until the clusters move less than some delta.

It's hosted here http://brian.derocher.org/?Page=project&Id=104201

comment:5 by strk, 12 years ago

An incremental approach is described here: http://web.eecs.utk.edu/~itamar/Papers/ITNG2010.pdf

It would help with maintenance of the '*_clustered' idea

comment:6 by pramsey, 9 years ago

Resolution: duplicate
Status: newclosed

Clustering functions are being added, DBScan (#3362) and KMeans (#3465).

comment:7 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.