Artelys / geonetworkx

Python tools for geographic graphs
MIT License
34 stars 4 forks source link

Not documented how geojson node- and edgefiles have to be structured #5

Open nicolasbeglinger opened 2 years ago

nicolasbeglinger commented 2 years ago

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

adolmajian commented 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: