Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
358dfea5
Commit
358dfea5
authored
1 year ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
Add option to not store quality ade
parent
63f5261a
master
107-opengl-view
dev
dev_bht
dev_cpp_code_conversion
dev_gui_features
dev_gui_features_zip_loading
3.16.0
3.15.0
3.14.1
3.14.0
3.13.1
3.13.0
archive/dev_gui_features_zip_loading
archive/dev_citygml3
archive/dev_GUI
archive/darmstadt
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModel.java
+8
-1
.../stuttgart/citydoctor2/datastructure/CityDoctorModel.java
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModelTest.java
+2
-2
...ttgart/citydoctor2/datastructure/CityDoctorModelTest.java
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/CityDoctorValidation.java
+1
-1
...va/de/hft/stuttgart/citydoctor2/CityDoctorValidation.java
with
11 additions
and
4 deletions
+11
-4
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModel.java
+
8
-
1
View file @
358dfea5
...
...
@@ -123,11 +123,18 @@ public class CityDoctorModel {
water
.
stream
()).
flatMap
(
co
->
co
);
}
public
void
saveAs
(
String
file
)
throws
CityDoctorWriteException
{
public
void
saveAs
(
String
file
,
boolean
saveQualityAde
)
throws
CityDoctorWriteException
{
if
(
file
.
endsWith
(
".off"
))
{
exportAsOff
(
file
);
}
else
{
ValidationPlan
tempPlan
=
plan
;
if
(!
saveQualityAde
)
{
setValidated
(
null
);
}
exportAsGML
(
file
);
if
(!
saveQualityAde
)
{
setValidated
(
tempPlan
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModelTest.java
+
2
-
2
View file @
358dfea5
...
...
@@ -140,7 +140,7 @@ public class CityDoctorModelTest {
b
.
setGmlObject
(
gmlBuilding
);
model
.
addBuilding
(
b
);
File
saveFile
=
folder
.
newFile
();
model
.
saveAs
(
saveFile
.
getAbsolutePath
());
model
.
saveAs
(
saveFile
.
getAbsolutePath
()
,
true
);
assertTrue
(
saveFile
.
exists
());
assertTrue
(
saveFile
.
length
()
>
0
);
...
...
@@ -206,7 +206,7 @@ public class CityDoctorModelTest {
b
.
setGmlObject
(
gmlBuilding
);
model
.
addBuilding
(
b
);
File
saveFile
=
folder
.
newFile
();
model
.
saveAs
(
saveFile
.
getAbsolutePath
());
model
.
saveAs
(
saveFile
.
getAbsolutePath
()
,
true
);
assertTrue
(
saveFile
.
exists
());
assertTrue
(
saveFile
.
length
()
>
0
);
...
...
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/CityDoctorValidation.java
+
1
-
1
View file @
358dfea5
...
...
@@ -176,7 +176,7 @@ public class CityDoctorValidation {
Checker
c
=
new
Checker
(
config
,
model
);
c
.
runChecks
(
xmlOutput
,
pdfOutput
,
null
);
if
(
outputFile
!=
null
)
{
model
.
saveAs
(
outputFile
);
model
.
saveAs
(
outputFile
,
true
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets