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
cb5d5f03
Commit
cb5d5f03
authored
Jul 07, 2025
by
Matthias Betz
Browse files
fixing missing uom and value for valid quality ade output
parent
52e6ef7c
Pipeline
#11547
passed with stage
in 1 minute and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Unit.java
View file @
cb5d5f03
...
@@ -29,7 +29,7 @@ import de.hft.stuttgart.citydoctor2.utils.Localization;
...
@@ -29,7 +29,7 @@ import de.hft.stuttgart.citydoctor2.utils.Localization;
*/
*/
public
enum
Unit
{
public
enum
Unit
{
KWH
(
"kWh"
,
"kWh"
),
METER
(
"m"
,
"m"
),
SQUARE_METER
(
"m²"
,
"m2"
),
CUBIC_METER
(
"m³"
,
"m3"
),
RADIAN
(
Localization
.
getText
(
"Unit.Radian"
),
"rad"
),
NONE
(
""
,
null
),
DEGREE
(
Localization
.
getText
(
"Unit.Degree"
),
"deg"
);
KWH
(
"kWh"
,
"kWh"
),
METER
(
"m"
,
"m"
),
SQUARE_METER
(
"m²"
,
"m2"
),
CUBIC_METER
(
"m³"
,
"m3"
),
RADIAN
(
Localization
.
getText
(
"Unit.Radian"
),
"rad"
),
NONE
(
""
,
""
),
DEGREE
(
Localization
.
getText
(
"Unit.Degree"
),
"deg"
);
private
final
String
representation
;
private
final
String
representation
;
private
final
String
gmlRep
;
private
final
String
gmlRep
;
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/Checker.java
View file @
cb5d5f03
...
@@ -264,6 +264,8 @@ public class Checker {
...
@@ -264,6 +264,8 @@ public class Checker {
DefaultParameter
defaultP
=
getDefaultParameter
(
e
.
getKey
(),
reqs
,
param
.
getKey
());
DefaultParameter
defaultP
=
getDefaultParameter
(
e
.
getKey
(),
reqs
,
param
.
getKey
());
if
(
defaultP
!=
null
)
{
if
(
defaultP
!=
null
)
{
p
.
setUom
(
defaultP
.
getUnitType
().
getGmlRepresentation
());
p
.
setUom
(
defaultP
.
getUnitType
().
getGmlRepresentation
());
}
else
{
p
.
setUom
(
""
);
}
}
p
.
setName
(
param
.
getKey
());
p
.
setName
(
param
.
getKey
());
p
.
setValue
(
param
.
getValue
());
p
.
setValue
(
param
.
getValue
());
...
@@ -280,22 +282,29 @@ public class Checker {
...
@@ -280,22 +282,29 @@ public class Checker {
correct
.
setEnabled
(
config
.
getSchematronFilePath
()
!=
null
);
correct
.
setEnabled
(
config
.
getSchematronFilePath
()
!=
null
);
plan
.
getRequirements
().
add
(
new
RequirementProperty
(
missing
));
plan
.
getRequirements
().
add
(
new
RequirementProperty
(
missing
));
plan
.
getRequirements
().
add
(
new
RequirementProperty
(
correct
));
plan
.
getRequirements
().
add
(
new
RequirementProperty
(
correct
));
de
.
hft
.
stuttgart
.
quality
.
model
.
types
.
GlobalParameters
globParams
=
new
de
.
hft
.
stuttgart
.
quality
.
model
.
types
.
GlobalParameters
();
plan
.
setGlobalParameters
(
new
GlobalParametersProperty
(
globParams
));
Parameter
numRounding
=
new
Parameter
();
Parameter
numRounding
=
new
Parameter
();
numRounding
.
setName
(
"numberOfRoundingPlaces"
);
numRounding
.
setName
(
"numberOfRoundingPlaces"
);
numRounding
.
setUom
(
"amount"
);
numRounding
.
setValue
(
""
+
config
.
getNumberOfRoundingPlaces
());
numRounding
.
setValue
(
""
+
config
.
getNumberOfRoundingPlaces
());
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
numRounding
));
Parameter
minVertexDistance
=
new
Parameter
();
Parameter
minVertexDistance
=
new
Parameter
();
minVertexDistance
.
setName
(
"minVertexDistance"
);
minVertexDistance
.
setName
(
"minVertexDistance"
);
minVertexDistance
.
setUom
(
"m"
);
minVertexDistance
.
setUom
(
"m"
);
minVertexDistance
.
setValue
(
""
+
config
.
getMinVertexDistance
());
minVertexDistance
.
setValue
(
""
+
config
.
getMinVertexDistance
());
Parameter
schematronFile
=
new
Parameter
();
schematronFile
.
setName
(
"schematronFile"
);
schematronFile
.
setValue
(
config
.
getSchematronFilePath
());
de
.
hft
.
stuttgart
.
quality
.
model
.
types
.
GlobalParameters
globParams
=
new
de
.
hft
.
stuttgart
.
quality
.
model
.
types
.
GlobalParameters
();
plan
.
setGlobalParameters
(
new
GlobalParametersProperty
(
globParams
));
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
numRounding
));
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
minVertexDistance
));
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
minVertexDistance
));
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
schematronFile
));
if
(
config
.
getSchematronFilePath
()
!=
null
)
{
Parameter
schematronFile
=
new
Parameter
();
schematronFile
.
setName
(
"schematronFile"
);
schematronFile
.
setUom
(
"path"
);
schematronFile
.
setValue
(
config
.
getSchematronFilePath
());
globParams
.
getParameters
().
add
(
new
ParameterProperty
(
schematronFile
));
}
return
plan
;
return
plan
;
}
}
...
...
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