SQL Server 2008 空间集群
我正在尝试根据密度和相对距离对地理空间数据点进行分组。有没有一种方法可以在 SQL Server 2008 中使用空间功能来完成此操作,或者将数据转换为图形数据并使用图形聚类算法会更好吗?
I am trying to group points of geospatial data based on density and relative distance. Is there a way that this can be done in SQL Server 2008 using the spatial features or would it be better to translate the data into graph data and use a graph clustering algorithm?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,SQL Server 2008 中没有用于聚类点的内置空间方法。我从未遇到过在 T-SQL/数据库级别完成此操作的任何示例。
采用第二种方法并在应用程序级别进行这些计算会容易得多 - 根据您的需求/开发偏好使用 R、GRASS、MapServer。
如果只是为了显示点簇(而不是关联分析),请查看以下链接:
OpenLayers
http://openlayers.org/dev/examples/strategy-cluster.html
Google
http://googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1
http://econym.org.uk/gmap/example_clusterer.htm
Python / PostGIS
http://wiki.osgeo.org/wiki/Point_Clustering
As far as I know there are no inbuilt spatial methods for clustering points in SQL Server 2008. I've never come across any examples of this done in T-SQL / at the database level.
It would be far easier to go with your second approach and do these calculations at the application level - using R, GRASS, MapServer depending on your needs / development preferences.
If it is just for displaying clusters of points (rather than associated analysis) then check out the following links:
OpenLayers
http://openlayers.org/dev/examples/strategy-cluster.html
Google
http://googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1
http://econym.org.uk/gmap/example_clusterer.htm
Python / PostGIS
http://wiki.osgeo.org/wiki/Point_Clustering