NetworkX: Saving Shortest path of OpenStreetMap data as an OGR friendly format

المشرف العام

Administrator
طاقم الإدارة
I am using this script to import OSM data into a GIS based model.

This has to run independent from any software package such as QGIS, PostGIS, or ArcGIS.

I then create a shortest path between two nodes as follow:

shortest_path = nx.shortest_path(G, source=u'879835512', target=u'879912131')result_graph = G.subgraph(shortest_path)I would like to visualize (kml?) the results of the shortest path and store them (shp?).

I have a feeling that I need to use the write_shp but I think that only works if you have already used read_shp which I haven't since I'm importing directly from OSM.



أكثر...
 
أعلى