Commit a7ad93c9 authored by Eric Duminil's avatar Eric Duminil
Browse files

RegionChooser: void return.

parent a1f29c5c
......@@ -57,8 +57,8 @@ public JavaScriptFXBridge() {
}
}
public String refreshHulls() throws IOException {
System.out.println("Look for hulls in " + repo);
public void refreshHulls() throws IOException {
System.out.println("Looking for hulls in " + repo);
Path url = Paths.get("just_a_test.kml");
String header = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<kml>\n" + " <Document>\n";
String footer = " </Document>\n" + "</kml>";
......@@ -71,7 +71,6 @@ public String refreshHulls() throws IOException {
System.out.println("Parsing " + p);
try {
String hullKML = new String(Files.readAllBytes(p), StandardCharsets.UTF_8);
System.out.println(hullKML);
jsApp.call("addCityGmlHull", header + hullKML + footer);
List<String> lines = Files.readAllLines(p);
for (String line : lines) {
......@@ -85,7 +84,7 @@ public String refreshHulls() throws IOException {
} catch (Exception ex) {
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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment