Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
abd380e2
Commit
abd380e2
authored
Nov 11, 2025
by
Luna Riegel
Browse files
Style: Update Localization of CityGmlParser
parent
0305b2bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/parser/CityGmlParser.java
View file @
abd380e2
...
...
@@ -158,10 +158,10 @@ public class CityGmlParser {
ADERegistry
adeRegistry
=
ADERegistry
.
getInstance
();
adeRegistry
.
loadADE
(
new
QualityADEContext
());
}
catch
(
CityGMLContextException
e
)
{
logger
.
fatal
(
"Unable to create c
ity
g
ml
4j context"
,
e
);
logger
.
fatal
(
Localization
.
getText
(
"C
ity
G
ml
Parser.creating4jContextFailed"
)
,
e
);
throw
new
IllegalStateException
(
"Unable to create citygml4j context"
);
}
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"
);
}
}
...
...
@@ -282,7 +282,6 @@ public class CityGmlParser {
return
readAndKeepFeatures
(
config
,
file
,
in
,
ois
,
verbose
,
nested
);
}
}
catch
(
CityGMLReadException
|
IOException
e
)
{
//TODO: Localize String
throw
new
CityGmlParseException
(
"Failed to read CityGML file"
,
e
);
}
}
...
...
@@ -480,7 +479,7 @@ public class CityGmlParser {
if
(
mapper
.
getModel
().
getCityModel
()
==
null
)
{
// file does not contain a city model?
// 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
());
for
(
AbstractCityObject
aco
:
queuedObjects
)
{
if
(!
cdModel
.
containsGmlId
(
aco
.
getId
()))
{
...
...
@@ -603,11 +602,11 @@ public class CityGmlParser {
CoordinateReferenceSystem
utm
;
if
(
centerLat
<
0
)
{
// south
logger
.
info
(
"Converting coordiante system to UTM zone {}
S"
,
zone
);
logger
.
info
(
Localization
.
getText
(
"CityGmlParser.convertCrsToUtmZone
S"
)
,
zone
);
utm
=
CRS_FACTORY
.
createFromParameters
(
"UTM"
,
"+proj=utm +ellps=WGS84 +units=m +zone="
+
zone
+
" +south"
);
}
else
{
// north
logger
.
info
(
"Converting coordiante system to UTM zone {}
N"
,
zone
);
logger
.
info
(
Localization
.
getText
(
"CityGmlParser.convertCrsToUtmZone
N"
)
,
zone
);
utm
=
CRS_FACTORY
.
createFromParameters
(
"UTM"
,
"+proj=utm +ellps=WGS84 +units=m +zone="
+
zone
);
}
config
.
setCoordinateSystem
(
crs
,
utm
);
...
...
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties
View file @
abd380e2
...
...
@@ -60,9 +60,14 @@ CityDoctorValidation.notExactlyOnePDFOutput=Specify exactly one file as pdfRepor
CityDoctorValidation.notExactlyOneXMLOutput
=
Specify exactly one file as xmlReport
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.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.errorWritingGmlFile
=
Error while writing city gml file
\n
{}
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.noConversionNeeded
=
Coordinate system is in meters, no conversion done
CityGmlParser.notValidGmlFile
=
This is not a valid GML-File
\n
...
...
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties
View file @
abd380e2
...
...
@@ -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.wrongInputFileFormat
=
Eingabedatei '{}' ist keine .gml oder .xml Datei.
CityGmlParser.chunkReadFailed
=
Konnte Datei nicht in St
\u
00fccken 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
\u
00fcr citygml4j konnte nicht erstellt werden
CityGmlParser.errorReadingGmlFile
=
Fehler beim lesen 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
\u
00fcck
CityGmlParser.missingCityModel
=
Datei enth
\u
00e4lt kein CityModel! Tempor
\u
00e4res CityModel wird erstellt.
CityGmlParser.missingEPSGCode
=
Kein EPSG Code gefunden, nehme metrisches System an
CityGmlParser.noConversionNeeded
=
Koordinatensystem in Metern, keine Konvertierung notwendig
CityGmlParser.notValidGmlFile
=
Dies ist keine korrekte CityGML Datei
\n
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment