Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CircularGreenSimCity
CircularGreenSimCity
Commits
bf91b58b
Commit
bf91b58b
authored
Feb 17, 2025
by
Eric Duminil
Browse files
Not every OSM region has width information
parent
7e835af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/export_OSM_roads_to_csv.py
View file @
bf91b58b
...
...
@@ -35,7 +35,8 @@ def create_table(ways):
df
=
df
.
rename
(
columns
=
{
'width'
:
'width [m]'
,
'maxspeed'
:
'maxspeed [km/h]'
})
for
col
in
NUMERICAL_COLUMNS
:
df
[
col
]
=
pd
.
to_numeric
(
df
[
col
])
if
col
in
df
.
columns
:
df
[
col
]
=
pd
.
to_numeric
(
df
[
col
])
df
=
df
.
sort_values
(
'length [m]'
,
ascending
=
False
)
return
df
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment