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
a6ad81b4
Commit
a6ad81b4
authored
4 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Add export according to CityDoctorModel`s CityGML version
parent
df83b221
master
107-opengl-view
dev
dev_cpp_code_conversion
dev_gui_features
dev_gui_features_zip_loading
3.16.0
archive/dev_gui_features_zip_loading
archive/dev_citygml3
2 merge requests
!11
CityDoctor Release Version 3.16.0
,
!10
CityGML 3.0. Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/writer/CityGMLWriterUtils.java
+4
-1
.../hft/stuttgart/citydoctor2/writer/CityGMLWriterUtils.java
with
4 additions
and
1 deletion
+4
-1
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/writer/CityGMLWriterUtils.java
+
4
-
1
View file @
a6ad81b4
...
@@ -68,7 +68,7 @@ public class CityGMLWriterUtils {
...
@@ -68,7 +68,7 @@ public class CityGMLWriterUtils {
public
static
void
writeCityModel
(
String
file
,
CityDoctorModel
model
)
throws
CityDoctorWriteException
{
public
static
void
writeCityModel
(
String
file
,
CityDoctorModel
model
)
throws
CityDoctorWriteException
{
CityGMLContext
gmlContext
=
CityGmlParser
.
getContext
();
CityGMLContext
gmlContext
=
CityGmlParser
.
getContext
();
CityModel
cModel
=
model
.
getCityModel
();
CityModel
cModel
=
model
.
getCityModel
();
CityGMLOutputFactory
factory
=
gmlContext
.
createCityGMLOutputFactory
(
CityGMLVersion
.
v2_0
);
CityGMLOutputFactory
factory
=
gmlContext
.
createCityGMLOutputFactory
(
model
.
get
CityGMLVersion
()
);
try
(
CityGMLWriter
writer
=
factory
.
createCityGMLWriter
(
new
File
(
file
)))
{
try
(
CityGMLWriter
writer
=
factory
.
createCityGMLWriter
(
new
File
(
file
)))
{
writer
.
withIndent
(
" "
);
writer
.
withIndent
(
" "
);
writer
.
withDefaultPrefixes
();
writer
.
withDefaultPrefixes
();
...
@@ -92,6 +92,9 @@ public class CityGMLWriterUtils {
...
@@ -92,6 +92,9 @@ public class CityGMLWriterUtils {
storeCityObjects
(
model
.
getLand
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getLand
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getTransportation
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getTransportation
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getWater
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getWater
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getCityFurniture
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getGenericCityObjects
(),
gmlFactory
,
model
,
cModel
,
val
);
storeCityObjects
(
model
.
getTunnels
(),
gmlFactory
,
model
,
cModel
,
val
);
writer
.
write
(
cModel
);
writer
.
write
(
cModel
);
cModel
.
getCityObjectMembers
().
clear
();
cModel
.
getCityObjectMembers
().
clear
();
...
...
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