将地图上的线集合概括为更简单的线,以改进标记。
Skeletron的Python项目详细描述
Skeletron将直线集合推广到特定的球面墨卡托 使用多边形缓冲区和voronoi图作为 1996年,阿尔诺·拉达克和罗伯托·马丁内斯在一篇论文中描述,“自动化 高精度道路中心线泰森多边形技术的推导 (http://proceedings.esri.com/library/userconf/proc96/TO400/PAP370/P370.HTM)。
- 所需依赖项:
- qhull二进制(http://www.qhull.org)
- 形状1.2+(http://pypi.python.org/pypi/Shapely)
- pyproj(http://code.google.com/p/pyproj)
- networkx 1.5+(http://networkx.lanl.gov)
- 街道名称0.1+(https://github.com/nvkelso/map-label-style-manual/tree/master/tools/street_names)
您通常会通过提供的实用程序脚本之一使用它,目前 只有这两个:
skeletron-osm-streets.py
Accepts OpenStreetMap XML input and generates GeoJSON output for streets using the “name” and “highway” tags to group collections of ways.
skeletron-osm-route-rels.py
Accepts OpenStreetMap XML input and generates GeoJSON output for routes using the “network”, “ref” and “modifier” tags to group relations. More on route relations: http://wiki.openstreetmap.org/wiki/Relation:route
名称
Skeletron的前两个实现使用了 一个多边形找到了一个广义中心,并最终没有很好地工作。