diff --git a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/parser/CityGmlParser.java b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/parser/CityGmlParser.java index 765bb50dc571417fa4d7c41da0031104463164d1..495b2c0b75147bc5b7b5ba6684d16c429f3e4f64 100644 --- a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/parser/CityGmlParser.java +++ b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/parser/CityGmlParser.java @@ -570,18 +570,24 @@ public class CityGmlParser { private static void logEpsgParseError(Exception e) { logger.debug("Exception while parsing for EPSG code", e); if (logger.isWarnEnabled()) { - logger.warn(Localization.getText("CityGmlParser.noEPSG")); + logger.warn(Localization.getText("CityGmlParser.failedEPSGParse")); } } private static void parseCoordinateSystem(ParserConfiguration config, CityGmlHandler handler) { if (handler.getEpsg() == null) { + if (logger.isWarnEnabled()) { + logger.warn(Localization.getText("CityGmlParser.missingEPSGCode")); + } return; } CoordinateReferenceSystem crs = crsFromSrsName(handler.getEpsg()); if (crs == null) { // could not find a coordinate system for srsName // assuming metric system + if (logger.isWarnEnabled()) { + logger.warn(Localization.getText("CityGmlParser.missingEPSGCode")); + } return; } if (crs.getProjection().getUnits() == Units.METRES) { diff --git a/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties b/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties index f7ad5450a9326cca85d4c878c4d12e6e5d3762d0..01a8b3caddc0a9f63e1a18f0aa4a17a8bd0afae6 100644 --- a/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties +++ b/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties @@ -121,7 +121,8 @@ CityGmlParser.notValidGmlFile=This is not a valid GML-File\n CityGmlParser.errorReadingGmlFile=Error while reading city gml file\n{} CityGmlParser.errorWritingGmlFile=Error while writing city gml file\n{} CityGmlParser.noConversionNeeded=Coordinate system is in meters, no conversion done -CityGmlParser.noEPSG=Could not read EPSG code, assuming metric system +CityGmlParser.failedEPSGParse=Could not read EPSG code, fallback to metric system +CityGmlParser.missingEPSGCode=No EPSG code found, assuming metric system OpenFileDialog.loadFailed=Failed to load CityGML File MainWindow.memoryLabel=Memory: CheckDialog.checksReenabledAlert=Some checks have been reenabled so that other wanted checks can be executed\nSee the log for more information. diff --git a/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties b/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties index 9023f19ae2e1f56ecb5315609304c1e8044ae1e6..a62ecf98f92d476075e6fa70a84c1a8faba43970 100644 --- a/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties +++ b/CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties @@ -111,7 +111,7 @@ WriteReportDialog.xAxisLabel=Fehler WriteReportDialog.yAxisLabel=Anzahl Unit.Radian=Radiant Unit.Degree=Grad -FeatureMapper.polygonUnreferenced=Polygon {} ist referenziert wurde aber nicht gefunden +FeatureMapper.polygonUnreferenced=Polygon {} ist referenziert, konnte aber nicht gefunden werden GeometryMapper.emptyPolygon=Polygon ohne externen Ring gefunden, ignoriere CityGmlParser.parsedObjects=Modell mit {} Objekten gelesen CityGmlParser.chunkReadFailed=Konnte Datei nicht in St\u00fccken lesen, versuche komplett zu lesen @@ -119,7 +119,8 @@ CityGmlParser.notValidGmlFile=Dies ist keine korrekte CityGML Datei\n CityGmlParser.errorReadingGmlFile=Fehler beim lesen der CityGML Datei\n{} CityGmlParser.errorWritingGmlFile=Fehler beim schreiben der CityGML Datei\n{} CityGmlParser.noConversionNeeded=Koordinatensystem in Metern, keine Konvertierung notwendig -CityGmlParser.noEPSG=Konnte EPSG Code nicht lesen, nehme metrisches System an +CityGmlParser.failedEPSGParse=Lesen des EPSG Codes fehlgeschlagen, greife auf metrisches System zur\u00fcck +CityGmlParser.missingEPSGCode=Kein EPSG Code gefunden, nehme metrisches System an OpenFileDialog.loadFailed=Konnte CityGML Datei nicht laden MainWindow.memoryLabel=Speicher: CheckDialog.checksReenabledAlert=Manche Pr\u00fcfungen wurden reaktiviert damit andere gewollte Pr\u00fcfungen durchgef\u00fchrt werden k\u00f6nnen\nMehr Details sind im Log geschrieben