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
8b596694
Commit
8b596694
authored
Mar 26, 2024
by
Eric Duminil
Browse files
forgotten ,
parent
f1ef4381
Changes
1
Hide whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/add_trees.py
View file @
8b596694
...
...
@@ -138,7 +138,7 @@ def place_trees(forest, ways, region, to_local, tree_distance, min_distance_2) -
forest
.
add_tree_if_possible
(
min_distance_2
,
x
,
y
,
color
=
'#DFFF00'
,
type
=
'Fake Tree'
,
description
=
'Tilia tomentosa'
description
=
'Tilia tomentosa'
,
radius
=
3
)
...
...
@@ -167,7 +167,7 @@ def export_map(bounds, forest, epsg_id) -> None:
lon
,
lat
=
to_wgs84
.
transform
(
tree
.
x
,
tree
.
y
)
folium
.
Circle
(
location
=
[
lat
,
lon
],
radius
=
tree
.
radius
or
2
,
# [m], when defined
radius
=
tree
.
radius
or
2
,
# [m], when defined
color
=
"black"
,
weight
=
1
,
fill_opacity
=
0.9
,
...
...
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