Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mayer
CircularGreenSimCity
Commits
0bcfd36d
Commit
0bcfd36d
authored
May 06, 2024
by
Eric Duminil
Browse files
Not needed anymore
parent
b10a37bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/add_trees.py
View file @
0bcfd36d
...
@@ -108,7 +108,6 @@ def get_default_widths(ways: list) -> dict[str, float] :
...
@@ -108,7 +108,6 @@ def get_default_widths(ways: list) -> dict[str, float] :
for
way
in
ways
:
for
way
in
ways
:
width
=
float
(
way
.
tags
.
get
(
"width"
,
0
))
width
=
float
(
way
.
tags
.
get
(
"width"
,
0
))
way_type
=
way
.
tags
.
get
(
"highway"
)
way_type
=
way
.
tags
.
get
(
"highway"
)
print
(
way_type
,
width
)
if
width
:
if
width
:
if
way_type
not
in
width_counters
:
if
way_type
not
in
width_counters
:
width_counters
[
way_type
]
=
Counter
()
width_counters
[
way_type
]
=
Counter
()
...
...
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