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

Format

parent ad59df2b
Pipeline #8980 passed with stage
in 32 seconds
......@@ -43,7 +43,7 @@ public class RegionChooserBrowser extends Region
public JavaScriptFXBridge() {
Preferences userPrefs = Preferences.userRoot().node("/eu/simstadt/desktop");
String repoString = userPrefs.get(PREF_RECENT_REPOSITORY, null);
repo = repoString == null? null : Paths.get(repoString);
repo = repoString == null ? null : Paths.get(repoString);
}
/**
......@@ -158,16 +158,15 @@ public void warning(String text) {
}
/*
* NOTE: Users sometime select some_region.proj/ as a repository.
* SimStadt won't show any project in this "repository", but RegionChooser shouldn't complain and
* still be able to extract regions.
* NOTE: Users sometime select some_region.proj/ as a repository. SimStadt won't show any project in this
* "repository", but RegionChooser shouldn't complain and still be able to extract regions.
*/
private boolean isRepoAProject(){
private boolean isRepoAProject() {
return repo.toString().endsWith(".proj");
}
private Path citygmlPath(String project, String citygml) {
if (isRepoAProject()){
if (isRepoAProject()) {
return repo.resolve(citygml);
} else {
return repo.resolve(project + ".proj").resolve(citygml);
......
......@@ -99,7 +99,6 @@ static int selectRegionDirectlyFromCityGML(String wktPolygon, String srsName, Wr
if (otherObjectsCount > 0) {
LOGGER.info("Other objects found in selected region : " + otherObjectsCount);
}
//NOTE: This could be a problem if header starts with <core:CityModel> and footer ends with </CityModel>
sb.append(citygml.getFooter());
return foundBuildingsCount;
}
......
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