我已经在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":""]
鉴于以下测试shapefile,其由仅折线的边缘添加到图表: 我能够再现shape文件表示的空间网络的节点: import networkx as nx
import matplotlib.pyplot as plt
G=nx.read_shp('C:\Users\MyName\MyFolder\TEST.shp') #Read shapefile as graph
pos = {k: v