我已经在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中。
有没有办法计算这些节点之间的街道距离?
其目的是获得一个距离列表,并用直方图绘制它们。
谢谢你的帮助
发布于 2017-02-05 03:47:49
我将每对节点之间的“长度”作为shapefile的VectorFeatures属性。为了提取我运行的数字
let dim-street []
foreach gis:feature-list-of edges-dataset [ [?1] ->
set dim-street lput ( read-from-string gis:property-value ?1 "LENGTH" ) dim-street
]https://stackoverflow.com/questions/42040858
复制相似问题