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
e6ba2d4d
Commit
e6ba2d4d
authored
Apr 29, 2024
by
Eric Duminil
Browse files
Write trees attributes too
parent
8f53b17a
Changes
1
Hide whitespace changes
Inline
Side-by-side
enrich-citygml-with-greenarea/src/main/java/de/hft/stuttgart/citygml/green/osm/TreeUtils.java
View file @
e6ba2d4d
...
@@ -11,6 +11,7 @@ import org.locationtech.jts.geom.Coordinate;
...
@@ -11,6 +11,7 @@ import org.locationtech.jts.geom.Coordinate;
import
org.xmlobjects.gml.model.basictypes.Code
;
import
org.xmlobjects.gml.model.basictypes.Code
;
import
org.xmlobjects.gml.model.geometry.aggregates.MultiSurface
;
import
org.xmlobjects.gml.model.geometry.aggregates.MultiSurface
;
import
org.xmlobjects.gml.model.geometry.aggregates.MultiSurfaceProperty
;
import
org.xmlobjects.gml.model.geometry.aggregates.MultiSurfaceProperty
;
import
org.xmlobjects.gml.model.measures.Length
;
public
class
TreeUtils
public
class
TreeUtils
...
@@ -79,6 +80,8 @@ public class TreeUtils
...
@@ -79,6 +80,8 @@ public class TreeUtils
crownRadius
,
crownHeight
);
crownRadius
,
crownHeight
);
SolitaryVegetationObject
cover
=
new
SolitaryVegetationObject
();
SolitaryVegetationObject
cover
=
new
SolitaryVegetationObject
();
cover
.
setSpecies
(
new
Code
(
tree
.
getType
()));
cover
.
setSpecies
(
new
Code
(
tree
.
getType
()));
cover
.
setCrownDiameter
(
new
Length
(
crownRadius
*
2
));
cover
.
setHeight
(
new
Length
(
trunkHeight
+
crownHeight
));
cover
.
setId
(
UUID
.
randomUUID
().
toString
());
cover
.
setId
(
UUID
.
randomUUID
().
toString
());
cover
.
setLod2MultiSurface
(
new
MultiSurfaceProperty
(
generatedTree
));
cover
.
setLod2MultiSurface
(
new
MultiSurfaceProperty
(
generatedTree
));
cityModel
.
getCityObjectMembers
().
add
(
new
AbstractCityObjectProperty
(
cover
));
cityModel
.
getCityObjectMembers
().
add
(
new
AbstractCityObjectProperty
(
cover
));
...
...
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