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
07eab64d
Commit
07eab64d
authored
Mar 26, 2024
by
Eric Duminil
Browse files
Trunk diameter too
parent
50f76a62
Changes
2
Hide whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/add_trees.py
View file @
07eab64d
...
@@ -220,7 +220,7 @@ def export_shapefile(bounds: Bounds, forest: Forest, tree_distance: float, epsg_
...
@@ -220,7 +220,7 @@ def export_shapefile(bounds: Bounds, forest: Forest, tree_distance: float, epsg_
'x'
:
t
.
x
,
'y'
:
t
.
y
,
'x'
:
t
.
x
,
'y'
:
t
.
y
,
'Bezeichnun'
:
t
.
description
,
'Baumart'
:
t
.
type
,
'Bezeichnun'
:
t
.
description
,
'Baumart'
:
t
.
type
,
'Baumhöhe'
:
t
.
height
,
'Kronenbrei'
:
t
.
diameter
,
'Baumhöhe'
:
t
.
height
,
'Kronenbrei'
:
t
.
diameter
,
'Quelle'
:
t
.
source
,
'Stammumfan'
:
t
.
trunk_diameter
,
'Quelle'
:
t
.
source
}
}
for
t
in
forest
]
for
t
in
forest
]
...
...
python_scripts/add_trees_to_open_street_map/import_existing_trees.py
View file @
07eab64d
...
@@ -20,3 +20,4 @@ def get_existing_forest(shp_input):
...
@@ -20,3 +20,4 @@ def get_existing_forest(shp_input):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
print
(
repr
(
get_existing_forest
(
'existing_trees/Trees_ideal_2_20240227.shp'
)))
print
(
repr
(
get_existing_forest
(
'existing_trees/Trees_ideal_2_20240227.shp'
)))
# print(repr(get_existing_forest('output/49_80081__49_803063__9_947011__9_95511_10m/trees.shp')))
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