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
6f4954b9
Commit
6f4954b9
authored
Sep 22, 2026
by
Luna Riegel
Browse files
Fix: Exclude topo checks by default
parent
996d862a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/ValidationConfiguration.java
View file @
6f4954b9
...
@@ -255,7 +255,8 @@ public class ValidationConfiguration implements Serializable {
...
@@ -255,7 +255,8 @@ public class ValidationConfiguration implements Serializable {
}
}
/**
/**
* Validates the configuration, adds all missing requirements as enabled.
* Validates the configuration, adding all missing Requirements. Missed Geometric and Semantic Requirements will be
* enabled by default.
*
*
*/
*/
public
void
validateConfiguration
()
{
public
void
validateConfiguration
()
{
...
@@ -274,7 +275,10 @@ public class ValidationConfiguration implements Serializable {
...
@@ -274,7 +275,10 @@ public class ValidationConfiguration implements Serializable {
for
(
Requirement
req
:
availableRequirements
.
values
())
{
for
(
Requirement
req
:
availableRequirements
.
values
())
{
requirements
.
computeIfAbsent
(
req
.
getId
(),
id
->
{
requirements
.
computeIfAbsent
(
req
.
getId
(),
id
->
{
RequirementConfiguration
cConfig
=
new
RequirementConfiguration
();
RequirementConfiguration
cConfig
=
new
RequirementConfiguration
();
cConfig
.
setEnabled
(
true
);
cConfig
.
setEnabled
(
switch
(
req
.
getType
())
{
case
GEOMETRY
,
SEMANTIC
->
true
;
case
TOPOLOGY
->
false
;
});
for
(
DefaultParameter
param
:
req
.
getDefaultParameters
())
{
for
(
DefaultParameter
param
:
req
.
getDefaultParameters
())
{
cConfig
.
getParameters
().
put
(
param
.
getName
(),
param
.
getValue
());
cConfig
.
getParameters
().
put
(
param
.
getName
(),
param
.
getValue
());
}
}
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/checks/topology/MisalignedUtilityConnectionCheck.java
View file @
6f4954b9
...
@@ -52,7 +52,7 @@ public class MisalignedUtilityConnectionCheck extends Check {
...
@@ -52,7 +52,7 @@ public class MisalignedUtilityConnectionCheck extends Check {
static
{
static
{
ArrayList
<
CheckId
>
deps
=
new
ArrayList
<>();
ArrayList
<
CheckId
>
deps
=
new
ArrayList
<>();
deps
.
add
(
CheckId
.
C_GE_S_ALL_POLYGONS_WRONG_ORIENTATION
);
deps
.
add
(
CheckId
.
C_GE_S_ALL_POLYGONS_WRONG_ORIENTATION
);
deps
.
add
(
CheckId
.
C_TO_FLOATING_UTILITY
);
//
deps.add(CheckId.C_TO_FLOATING_UTILITY);
dependencies
=
Collections
.
unmodifiableList
(
deps
);
dependencies
=
Collections
.
unmodifiableList
(
deps
);
ArrayList
<
Class
<?
extends
Checkable
>>
classes
=
new
ArrayList
<>();
ArrayList
<
Class
<?
extends
Checkable
>>
classes
=
new
ArrayList
<>();
...
...
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