Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
a7ad93c9
Commit
a7ad93c9
authored
Mar 12, 2018
by
Eric Duminil
Browse files
RegionChooser: void return.
parent
a1f29c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/eu/simstadt/regionchooser/RegionChooserBrowser.java
View file @
a7ad93c9
...
@@ -57,8 +57,8 @@ public JavaScriptFXBridge() {
...
@@ -57,8 +57,8 @@ public JavaScriptFXBridge() {
}
}
}
}
public
String
refreshHulls
()
throws
IOException
{
public
void
refreshHulls
()
throws
IOException
{
System
.
out
.
println
(
"Look for hulls in "
+
repo
);
System
.
out
.
println
(
"Look
ing
for hulls in "
+
repo
);
Path
url
=
Paths
.
get
(
"just_a_test.kml"
);
Path
url
=
Paths
.
get
(
"just_a_test.kml"
);
String
header
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+
"<kml>\n"
+
" <Document>\n"
;
String
header
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+
"<kml>\n"
+
" <Document>\n"
;
String
footer
=
" </Document>\n"
+
"</kml>"
;
String
footer
=
" </Document>\n"
+
"</kml>"
;
...
@@ -71,7 +71,6 @@ public String refreshHulls() throws IOException {
...
@@ -71,7 +71,6 @@ public String refreshHulls() throws IOException {
System
.
out
.
println
(
"Parsing "
+
p
);
System
.
out
.
println
(
"Parsing "
+
p
);
try
{
try
{
String
hullKML
=
new
String
(
Files
.
readAllBytes
(
p
),
StandardCharsets
.
UTF_8
);
String
hullKML
=
new
String
(
Files
.
readAllBytes
(
p
),
StandardCharsets
.
UTF_8
);
System
.
out
.
println
(
hullKML
);
jsApp
.
call
(
"addCityGmlHull"
,
header
+
hullKML
+
footer
);
jsApp
.
call
(
"addCityGmlHull"
,
header
+
hullKML
+
footer
);
List
<
String
>
lines
=
Files
.
readAllLines
(
p
);
List
<
String
>
lines
=
Files
.
readAllLines
(
p
);
for
(
String
line
:
lines
)
{
for
(
String
line
:
lines
)
{
...
@@ -85,7 +84,7 @@ public String refreshHulls() throws IOException {
...
@@ -85,7 +84,7 @@ public String refreshHulls() throws IOException {
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
ex
.
printStackTrace
();
}
}
return
Paths
.
get
(
"src/eu/simstadt/regionchooser/website"
).
relativize
(
url
).
toString
();
//
Paths.get("src/eu/simstadt/regionchooser/website").relativize(url).toString();
}
}
public
void
downloadRegion
(
String
wktPolygon
,
String
productName
,
JSObject
novaFactoryLayer
)
public
void
downloadRegion
(
String
wktPolygon
,
String
productName
,
JSObject
novaFactoryLayer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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