Open nicolasbeglinger opened 2 years ago
Took me some time to figure it out too.
Your nodes
file needs to have a column that uniquely identifies each node (commonly id
).
Your edges
file needs to have two columns:
u
)one that refers to the ending node id of the edge (commonly v
)
Additionaly, I didn't find a method to transform a road/line/edges geofile/gdf into the required edges and nodes formats/files/gdf. So if you're starting off with a simple lines file, you will need to do the transformation yourself.
Hello :) First of all, thank you for sharing this package! I'd like to read in a street multiline string into the "read_geofiles()" method. However, I didn't find any documentation on how to structure the multiline- and the corresponding point-layer (with the nodes). It always gets stuck with a key error "[KeyError: "None of ['id'] are in the columns"]()"
Is there any documentation that I didn't catch? Cheers Nicolas