Commit abd380e2 authored by Luna Riegel's avatar Luna Riegel
Browse files

Style: Update Localization of CityGmlParser

parent 0305b2bc
...@@ -158,10 +158,10 @@ public class CityGmlParser { ...@@ -158,10 +158,10 @@ public class CityGmlParser {
ADERegistry adeRegistry = ADERegistry.getInstance(); ADERegistry adeRegistry = ADERegistry.getInstance();
adeRegistry.loadADE(new QualityADEContext()); adeRegistry.loadADE(new QualityADEContext());
} catch (CityGMLContextException e) { } catch (CityGMLContextException e) {
logger.fatal("Unable to create citygml4j context", e); logger.fatal(Localization.getText("CityGmlParser.creating4jContextFailed"), e);
throw new IllegalStateException("Unable to create citygml4j context"); throw new IllegalStateException("Unable to create citygml4j context");
} catch (ADEException e) { } catch (ADEException e) {
logger.fatal("Unable to add ADE plugins to citygml4j", e); logger.fatal(Localization.getText("CityGmlParser.creatingAdePluginsFailed"), e);
throw new IllegalStateException("Unable to add ADE plugins to citygml4j"); throw new IllegalStateException("Unable to add ADE plugins to citygml4j");
} }
} }
...@@ -282,7 +282,6 @@ public class CityGmlParser { ...@@ -282,7 +282,6 @@ public class CityGmlParser {
return readAndKeepFeatures(config, file, in, ois, verbose, nested); return readAndKeepFeatures(config, file, in, ois, verbose, nested);
} }
} catch (CityGMLReadException | IOException e) { } catch (CityGMLReadException | IOException e) {
//TODO: Localize String
throw new CityGmlParseException("Failed to read CityGML file", e); throw new CityGmlParseException("Failed to read CityGML file", e);
} }
} }
...@@ -480,7 +479,7 @@ public class CityGmlParser { ...@@ -480,7 +479,7 @@ public class CityGmlParser {
if (mapper.getModel().getCityModel() == null) { if (mapper.getModel().getCityModel() == null) {
// file does not contain a city model? // file does not contain a city model?
// create it for now // create it for now
logger.warn("File does not contain a CityModel definition! Temporary CityModel has been created."); logger.warn(Localization.getText("CityGmlParser.missingCityModel"));
mapper.setCityModel(new CityModel()); mapper.setCityModel(new CityModel());
for (AbstractCityObject aco : queuedObjects) { for (AbstractCityObject aco : queuedObjects) {
if (!cdModel.containsGmlId(aco.getId())) { if (!cdModel.containsGmlId(aco.getId())) {
...@@ -603,11 +602,11 @@ public class CityGmlParser { ...@@ -603,11 +602,11 @@ public class CityGmlParser {
CoordinateReferenceSystem utm; CoordinateReferenceSystem utm;
if (centerLat < 0) { if (centerLat < 0) {
// south // south
logger.info("Converting coordiante system to UTM zone {}S", zone); logger.info(Localization.getText("CityGmlParser.convertCrsToUtmZoneS"), zone);
utm = CRS_FACTORY.createFromParameters("UTM", "+proj=utm +ellps=WGS84 +units=m +zone=" + zone + " +south"); utm = CRS_FACTORY.createFromParameters("UTM", "+proj=utm +ellps=WGS84 +units=m +zone=" + zone + " +south");
} else { } else {
// north // north
logger.info("Converting coordiante system to UTM zone {}N", zone); logger.info(Localization.getText("CityGmlParser.convertCrsToUtmZoneN"), zone);
utm = CRS_FACTORY.createFromParameters("UTM", "+proj=utm +ellps=WGS84 +units=m +zone=" + zone); utm = CRS_FACTORY.createFromParameters("UTM", "+proj=utm +ellps=WGS84 +units=m +zone=" + zone);
} }
config.setCoordinateSystem(crs, utm); config.setCoordinateSystem(crs, utm);
......
...@@ -60,9 +60,14 @@ CityDoctorValidation.notExactlyOnePDFOutput=Specify exactly one file as pdfRepor ...@@ -60,9 +60,14 @@ CityDoctorValidation.notExactlyOnePDFOutput=Specify exactly one file as pdfRepor
CityDoctorValidation.notExactlyOneXMLOutput=Specify exactly one file as xmlReport CityDoctorValidation.notExactlyOneXMLOutput=Specify exactly one file as xmlReport
CityDoctorValidation.wrongInputFileFormat=Input file '{}' does not end with .gml or .xml CityDoctorValidation.wrongInputFileFormat=Input file '{}' does not end with .gml or .xml
CityGmlParser.chunkReadFailed=Failed to read GML file in chunks, falling back to reading the complete file CityGmlParser.chunkReadFailed=Failed to read GML file in chunks, falling back to reading the complete file
CityGmlParser.convertCrsToUtmZoneN=Converting coordinate system to UTM zone {}N
CityGmlParser.convertCrsToUtmZoneS=Converting coordinate system to UTM zone {}S
CityGmlParser.creating4jContextFailed=Unable to create citygml4j context
CityGmlParser.creatingAdePluginsFailed=Unable to add ADE plugins to citygml4j
CityGmlParser.errorReadingGmlFile=Error while reading city gml file\n{} CityGmlParser.errorReadingGmlFile=Error while reading city gml file\n{}
CityGmlParser.errorWritingGmlFile=Error while writing city gml file\n{} CityGmlParser.errorWritingGmlFile=Error while writing city gml file\n{}
CityGmlParser.failedEPSGParse=Could not read EPSG code, fallback to metric system CityGmlParser.failedEPSGParse=Could not read EPSG code, fallback to metric system
CityGmlParser.missingCityModel=File does not contain a CityModel definition! Temporary CityModel will be created.
CityGmlParser.missingEPSGCode=No EPSG code found, assuming metric system CityGmlParser.missingEPSGCode=No EPSG code found, assuming metric system
CityGmlParser.noConversionNeeded=Coordinate system is in meters, no conversion done CityGmlParser.noConversionNeeded=Coordinate system is in meters, no conversion done
CityGmlParser.notValidGmlFile=This is not a valid GML-File\n CityGmlParser.notValidGmlFile=This is not a valid GML-File\n
......
...@@ -60,9 +60,14 @@ CityDoctorValidation.notExactlyOnePDFOutput=Es muss exakt ein Ausgabedateipfad f ...@@ -60,9 +60,14 @@ CityDoctorValidation.notExactlyOnePDFOutput=Es muss exakt ein Ausgabedateipfad f
CityDoctorValidation.notExactlyOneXMLOutput=Es muss exakt ein Ausgabedateipfad fr den XML-Bericht angegeben werden. CityDoctorValidation.notExactlyOneXMLOutput=Es muss exakt ein Ausgabedateipfad fr den XML-Bericht angegeben werden.
CityDoctorValidation.wrongInputFileFormat=Eingabedatei '{}' ist keine .gml oder .xml Datei. CityDoctorValidation.wrongInputFileFormat=Eingabedatei '{}' ist keine .gml oder .xml Datei.
CityGmlParser.chunkReadFailed=Konnte Datei nicht in St\u00fccken lesen, versuche komplett zu lesen CityGmlParser.chunkReadFailed=Konnte Datei nicht in St\u00fccken lesen, versuche komplett zu lesen
CityGmlParser.convertCrsToUtmZoneN=Konvertiere Koordinatensystem zu UTM Zone {}N
CityGmlParser.convertCrsToUtmZoneS=Konvertiere Koordinatensystem zu UTM Zone {}S
CityGmlParser.creating4jContextFailed=Citygml4j Kontext konnte nicht erstellt werden
CityGmlParser.creatingAdePluginsFailed=ADE Plugin f\u00fcr citygml4j konnte nicht erstellt werden
CityGmlParser.errorReadingGmlFile=Fehler beim lesen der CityGML Datei\n{} CityGmlParser.errorReadingGmlFile=Fehler beim lesen der CityGML Datei\n{}
CityGmlParser.errorWritingGmlFile=Fehler beim schreiben der CityGML Datei\n{} CityGmlParser.errorWritingGmlFile=Fehler beim schreiben der CityGML Datei\n{}
CityGmlParser.failedEPSGParse=Lesen des EPSG Codes fehlgeschlagen, greife auf metrisches System zur\u00fcck CityGmlParser.failedEPSGParse=Lesen des EPSG Codes fehlgeschlagen, greife auf metrisches System zur\u00fcck
CityGmlParser.missingCityModel=Datei enth\u00e4lt kein CityModel! Tempor\u00e4res CityModel wird erstellt.
CityGmlParser.missingEPSGCode=Kein EPSG Code gefunden, nehme metrisches System an CityGmlParser.missingEPSGCode=Kein EPSG Code gefunden, nehme metrisches System an
CityGmlParser.noConversionNeeded=Koordinatensystem in Metern, keine Konvertierung notwendig CityGmlParser.noConversionNeeded=Koordinatensystem in Metern, keine Konvertierung notwendig
CityGmlParser.notValidGmlFile=Dies ist keine korrekte CityGML Datei\n CityGmlParser.notValidGmlFile=Dies ist keine korrekte CityGML Datei\n
......
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