From 2066345b2f17f4b3c5ba02538e916e1d8fb078db Mon Sep 17 00:00:00 2001 From: Matthias Betz Date: Tue, 3 Aug 2021 12:01:36 +0200 Subject: [PATCH] changed default degenerated polygon parameter to 0.01m --- .../java/de/hft/stuttgart/citydoctor2/check/Requirement.java | 2 +- .../citydoctor2/checks/geometry/RingSelfIntCheck.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Requirement.java b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Requirement.java index 2fb3aed9..d49a4a5c 100644 --- a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Requirement.java +++ b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Requirement.java @@ -84,7 +84,7 @@ public class Requirement implements Serializable { R_SE_BS_ROOF_UNFRAGMENTED.parameters = Collections.unmodifiableList(defaultParameters); defaultParameters = new ArrayList<>(); - defaultParameters.add(new DefaultParameter(DEGENERATED_RING_TOLERANCE, "0.00000", Unit.METER)); + defaultParameters.add(new DefaultParameter(DEGENERATED_RING_TOLERANCE, "0.01", Unit.METER)); R_GE_R_SELF_INTERSECTION.parameters = Collections.unmodifiableList(defaultParameters); } diff --git a/CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/checks/geometry/RingSelfIntCheck.java b/CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/checks/geometry/RingSelfIntCheck.java index 7f6794f4..560e7d54 100644 --- a/CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/checks/geometry/RingSelfIntCheck.java +++ b/CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/checks/geometry/RingSelfIntCheck.java @@ -61,7 +61,9 @@ public class RingSelfIntCheck extends Check { private static final String EPSILON_NAME = "minVertexDistance"; - private double degeneratedRingTolerance = 0.00000; + // check requirement class for default parameters + private double degeneratedRingTolerance = 0.01; + private double epsilon = Checks.MIN_VERTEX_DISTANCE_DEFAULT; private static final List dependencies; @@ -74,7 +76,6 @@ public class RingSelfIntCheck extends Check { dependencies = Collections.unmodifiableList(deps); } - private double epsilon = Checks.MIN_VERTEX_DISTANCE_DEFAULT; @Override public void init(Map parameters, ParserConfiguration config) { -- GitLab