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
93cd13b4
Commit
93cd13b4
authored
Sep 04, 2024
by
Eric Duminil
Browse files
Script for Philip
parent
e30a208c
Changes
1
Show whitespace changes
Inline
Side-by-side
enrich-citygml-with-greenarea/src/main/java/de/hft/stuttgart/scripts/PrepareDataForMarieke.java
View file @
93cd13b4
...
@@ -14,8 +14,9 @@ public class PrepareDataForMarieke
...
@@ -14,8 +14,9 @@ public class PrepareDataForMarieke
{
{
// Add Trees to GML files inside data/Marieke/...
// Add Trees to GML files inside data/Marieke/...
public
static
void
main
(
String
[]
whatever
)
throws
Exception
{
public
static
void
main
(
String
[]
whatever
)
throws
Exception
{
processGrombühl
();
// processGrafenbühl();
// processGrafenbühl();
processGrafenbühl3
();
//
processGrafenbühl3();
// processWholeRegion();
// processWholeRegion();
// processSmallBlocks();
// processSmallBlocks();
// processStatusQuo();
// processStatusQuo();
...
@@ -53,6 +54,22 @@ public class PrepareDataForMarieke
...
@@ -53,6 +54,22 @@ public class PrepareDataForMarieke
}
}
}
}
private
static
void
processGrombühl
()
throws
IOException
,
CityGMLContextException
,
CityGMLReadException
,
InterruptedException
,
CityGMLWriteException
,
JAXBException
,
ParseException
{
File
folder
=
new
File
(
"data/Philip/Test"
);
String
gml
=
"Polygon 1.gml"
;
File
[]
shapefiles
=
folder
.
listFiles
((
dir
,
name
)
->
name
.
endsWith
(
".shp"
));
for
(
File
shapefile
:
shapefiles
)
{
System
.
err
.
println
(
">>> "
+
shapefile
);
String
extension
=
shapefile
.
getName
().
replaceAll
(
"\\.shp"
,
""
);
String
[]
args
=
new
String
[]
{
folder
.
toPath
().
resolve
(
gml
).
toString
(),
// Input GML
shapefile
.
toString
(),
// Added trees, in Baumkatasterformat,
extension
,
// Output GML suffix
};
GreenEnricher
.
main
(
args
);
}
}
private
static
void
processGrafenbühl2
()
throws
IOException
,
CityGMLContextException
,
CityGMLReadException
,
private
static
void
processGrafenbühl2
()
throws
IOException
,
CityGMLContextException
,
CityGMLReadException
,
InterruptedException
,
CityGMLWriteException
,
JAXBException
,
ParseException
{
InterruptedException
,
CityGMLWriteException
,
JAXBException
,
ParseException
{
File
folder
=
new
File
(
"data/Marieke/Grafenbühl/nur_mit_oben"
);
File
folder
=
new
File
(
"data/Marieke/Grafenbühl/nur_mit_oben"
);
...
...
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