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
e178e81e
Commit
e178e81e
authored
Oct 14, 2025
by
Luna Riegel
Browse files
Refactor: Connect GeoDB to internal model
parent
28c42d2d
Pipeline
#12004
failed with stage
in 1 minute and 34 seconds
Changes
22
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/check/CheckerTest.java
View file @
e178e81e
...
...
@@ -68,7 +68,7 @@ public class CheckerTest {
"src/test/resources/SimpleSolid_SrefBS_SchematronTest.gml"
,
config
.
getParserConfiguration
());
Checker
checker
=
new
Checker
(
config
,
model
);
checker
.
runChecks
();
for
(
Building
b
:
model
.
getBuildings
())
{
for
(
Building
b
:
model
.
getBuildings
()
.
toList
()
)
{
if
(
b
.
getGmlId
().
getGmlString
().
equals
(
"_Simple_BD.1"
))
{
assertTrue
(
b
.
containsAnyError
());
}
else
{
...
...
@@ -207,7 +207,7 @@ public class CheckerTest {
Path
xmlPath
=
tmpDir
.
resolve
(
"report.xml"
);
Path
pdfPath
=
tmpDir
.
resolve
(
"report.pdf"
);
File
features
=
new
File
(
"src/test/resources/feature_types.gml"
);
CityDoctorModel
model
=
CityGmlParser
.
parse
CityGmlFile
Silently
(
CityDoctorModel
model
=
CityGmlParser
.
nested
CityGmlFile
Parse
(
features
.
toString
(),
new
ParserConfiguration
(
8
,
false
));
assertNotNull
(
model
);
Checker
checker
=
new
Checker
(
model
);
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
View file @
e178e81e
...
...
@@ -140,7 +140,7 @@ public class CityDoctorController {
}
};
}
model
=
CityGmlParser
.
parseCityGmlFile
(
path
,
currentConfig
,
l
,
handler
,
true
);
model
=
CityGmlParser
.
parseCityGmlFile
(
path
,
currentConfig
,
l
,
handler
);
if
(!
validationIssues
.
isEmpty
())
{
StringJoiner
sj
=
new
StringJoiner
(
"\n"
);
validationIssues
.
stream
().
forEach
(
sj:
:
add
);
...
...
@@ -482,7 +482,6 @@ public class CityDoctorController {
if
(
model
.
getBuildingCount
()
==
0
)
{
return
;
}
//TODO: Continue Supplier implementation
TreeView
<
Renderable
>
buildingsView
=
mainWindow
.
getBuildingsView
();
TreeItem
<
Renderable
>
root
=
new
TreeItem
<>(
new
CityObjectGroupNode
(
Collections
.
emptyList
(),
"Buildings"
,
Color
.
WHITE
));
...
...
Prev
1
2
Next
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