我正在使用 silverlight bing 地图控件构建地图应用程序。
在地图控件中,我想显示所有订阅的客户。
客户数量在 5000 到 7000 之间,这意味着我无法一次性显示全部客户。我猜这会导致崩溃。
你会如何解决这个问题?
我读过有关缩放级别的事件等有关平铺层的有关空间sql的信息
但我不知道在这种情况下正确的解决方案是什么以及从哪里开始。
在使用地图时,这似乎是一个非常基本的问题,但关于如何在使用 bing 地图时处理大量数据的信息很少甚至没有。
谁能解释一下或给我指出一个好的教程?
I am building a map application with the silverlight bing maps control.
In the map control I want to show all of the subscribed customers.
The amount of customers is somewhere between 5000 and 7000, this means I can't show them all at once. This would result in a crash I guess.
How would you solve this issue?
I've read about events on zoomlevels etc. about tile layers about spatial sql
but I have no idea what the right solution is in this situation and where to begin.
This seems like a pretty basic problem when working with maps but there is little to no information on how to handle lots of data when working with bing maps.
Can anyone explain or point me to a good tutorial?
发布评论
评论(1)
您可以使用空间填充曲线或空间索引来获取与地图应用程序的缩放级别嵌套的这些点,以实现集群效果http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves。 sfc 和希尔伯特曲线有很多实现。我已经在 phpclasses.org 上传了我自己的(hilbert-curve,bsd 许可证),并带有用于集群函数的四键函数。我已经为一些客户成功实施了它。这个想法是从左到右搜索四键以仅获得 pois 的一部分。 www.maptiler.org 使用带有 z 曲线的四键。也许您在 gis.stackexchange 上得到了更好的答案。 SFC 通常具有 2 次幂的约束。
You can use a space-filling-curve or a spatial-index to get those points nested with the zoom-level of your map application to achieve a cluster effect http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves. There are many implementation of sfc and hilbert-curves. I've uploaded my own at phpclasses.org (hilbert-curve, bsd licence) and with a quadkey function for a cluster function. I've succesful implemented it for some customers. The idea is to search for a quadkey from left to right to get only a portion of pois. www.maptiler.org uses a quadkey with a z-curve. Probably you are getting better answers at gis.stackexchange. A sfc has usually a constraint of power of 2.