I'm interested in calculating some centrality measures on a road network of
a city. The geometry of the road network, from Open Street Map, is stored
in a postgreSQL / postGIS database and can also be exported as a shapefile
or a geojson. What is the best way to import the geometry in graph-tool as
a planar graph?
Thank you,
Duccio
I don't have an answer to your specific question, but I just want to call
your attention to the OSMnnx , which makes it incredibly simple to create a
road network from OpenStreetMaps data with a single line of code. https://github.com/gboeing/osmnx
OSMnnx also allows one to save the graph as a GraphML file, which I
believe can be easily read by graph-tool as a planar graph if I'm not
mistaken.