【发布时间】:2017-02-04 13:20:08
【问题描述】:
我在 Netlogo 中加载了一个带有街道末端坐标的 GIS shapefile。 在做
set nodes-dataset gis:load-dataset "nodes.shp"
show gis:feature-list-of nodes-dataset gives me the list of gis features
[{{gis:VectorFeature ["HIGHWAY":""]["LON":"3.7282846"]["OSMID":"145809"]["LAT":"51.0559224"]}} {{gis:VectorFeature ["HIGHWAY":""]["LON":"3.717492"]["OSMID":"82775029"]["LAT":"51.0563512"]}} {{gis:VectorFeature ["HIGHWAY":""]["LON":"3.7173761"]["OSMID":"82775030"]["LAT":"51.0567027"]}} {{gis:VectorFeature ["HIGHWAY":""]["LON":"3.7182838"]["OSMID":"82775032"]["LAT":"51.0577545"]}} {{gis:VectorFeature ["HIGHWAY":""]["LON":"3.7187206"]["OSMI .....
其中包含每个节点的LAT和LON。
同样,我还将连接这些节点的街道/道路的 shapefile 加载到 Netlogo 中。
有没有办法计算这些节点之间的街道距离?
目的是获取距离列表并用直方图绘制它们。
感谢您的帮助
【问题讨论】:
-
另一个 shapefile,即带有边缘的文件,具有对之间连接的链接(街道)的属性“LENGTH”。要获得街道的长度,我只需要在列表中收集这些值。 Netlogo gis 扩展有任何形式吗?