Clustering Lat/Longs in a Database

前端 未结 6 1791
南旧
南旧 2020-12-23 23:18

I\'m trying to see if anyone knows how to cluster some Lat/Long results, using a database, to reduce the number of results sent over the wire to the application.

The

6条回答
  •  生来不讨喜
    2020-12-24 00:00

    I believe you can use MSSQL's spatial data types. If they are similar to other spatial data types I know, they will store your points in a tree of rectangles, and then you can go to the lower-resolution rectangles to get implicit clusters.

提交回复
热议问题