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

RegionChooser: void return.

parent a1f29c5c
...@@ -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("Looking 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)
......
Markdown is supported
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