Closed ManuelBanza closed 2 months ago
Thx! This error means you are reading an _edges.csv file that does not have "u" in its header line. My guess is that the file is empty? Maybe the data hasn't downloaded? I am not sure what the problem is. Instead of re-downloading, you could try reading in an existing file from the data repository: https://zenodo.org/record/5083049
The header (first line) of the file should look something like this:
osmid,oneway,ref,highway,maxspeed,length,geometry,name,lanes,bridge,junction,tunnel,access,service,width,u,v,key
u and v are, if I remember correctly, the osmids of the source and destination nodes that define that edge.
Hi Michael, thanks for the quick answer.
I was trying also other cities than the ones you did. I got the data correctly from the 01 for all the cites, but the header does not contain the u and v columns. For example in the file {city}_carall_edges I only have this:
osmid,oneway,lanes,name,highway,maxspeed,reversed,length,bridge,junction,ref,access,tunnel,width,geometry
Do you know why the v and u columns are missing?
Cheers
The reason is because something changed in a newer geopandas or osmnx version (one or both of the methods ox.simplify_graph
or .to_csv
)
Now the function ox_to_csv
needs in the two calls of .to_csv
to use parameter index = True
instead of index = False
.
I am working to get the code up to date to osmnx=1.9.4.
Hi,
Congratulations for this amazing project!!
I am running locally the project and on the notebook 02 when I try to Download and wrangle data I get this error:
Thank you