This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import networkx as nx | |
| from osgeo import ogr | |
| import os | |
| def load_graph_from_Digiroad_shape(filepath, direction='AJOSUUNTA', both_ways=2, against=3, along=4, strict=True): | |
| """Generates nx.MultiDiGraph() object from Digiroad 2.0 Shapefile. | |
| Parameters | |
| ---------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import networkx as nx | |
| from osgeo import ogr | |
| import os | |
| def load_graph_from_Digiroad_shape(filepath, direction='AJOSUUNTA', both_ways=2, against=3, along=4, strict=True): | |
| """Generates nx.MultiDiGraph() object from Digiroad 2.0 Shapefile. | |
| Parameters | |
| ---------- | |
NewerOlder