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
b373a7a3
Commit
b373a7a3
authored
Mar 10, 2025
by
Eric Duminil
Browse files
Make sure folders exist.
parent
20cbddef
Changes
1
Hide whitespace changes
Inline
Side-by-side
enrich-citygml-with-greenarea/src/main/java/de/hft/stuttgart/citygml/green/osm/GreenEnricher.java
View file @
b373a7a3
...
...
@@ -173,6 +173,7 @@ public class GreenEnricher implements Runnable
OsmData
osmData
=
new
OsmData
();
String
boundingBoxString
=
GreenEnricher
.
extractAndConvertBoundingBox
(
cityModel
,
osmData
);
String
boundingBoxBasename
=
boundingBoxString
.
replace
(
","
,
"__"
).
replace
(
'.'
,
'_'
);
Files
.
createDirectories
(
cacheFolder
);
Path
osmCache
=
cacheFolder
.
resolve
(
"osm_response_"
+
boundingBoxBasename
+
".xml"
);
if
(!
Files
.
exists
(
osmCache
))
{
System
.
out
.
println
(
"Downloading OSM data for "
+
boundingBoxString
);
...
...
@@ -206,6 +207,8 @@ public class GreenEnricher implements Runnable
String
inputString
=
citygmlInput
.
getFileName
().
toString
();
String
inputPathWithoutFileEnding
=
inputString
.
substring
(
0
,
inputString
.
lastIndexOf
(
'.'
));
Files
.
createDirectories
(
outputFolder
);
Path
outputPath
=
outputFolder
.
resolve
(
inputPathWithoutFileEnding
+
"_"
+
outputSuffix
+
".gml"
);
System
.
out
.
println
(
"Writing output file to "
+
outputPath
);
writeCityGML
(
cityModel
,
outputPath
);
...
...
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