Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sektorsim
CityGML Server
Commits
7e7235d9
Commit
7e7235d9
authored
Jul 16, 2026
by
Matthias Betz
Browse files
formatting
parent
d7d412aa
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/de/hft/stuttgart/sektorsim/server/controller/CityGMLServerController.java
View file @
7e7235d9
...
@@ -81,10 +81,8 @@ public class CityGMLServerController {
...
@@ -81,10 +81,8 @@ public class CityGMLServerController {
throw
new
RuntimeException
(
"Failed to retrieve CityGML"
,
e
);
throw
new
RuntimeException
(
"Failed to retrieve CityGML"
,
e
);
}
}
};
};
return
ResponseEntity
.
ok
()
return
ResponseEntity
.
ok
().
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\"citygml.gml\""
)
.
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\"citygml.gml\""
)
.
contentType
(
MediaType
.
APPLICATION_XML
).
body
(
stream
);
.
contentType
(
MediaType
.
APPLICATION_XML
)
.
body
(
stream
);
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
logger
.
error
(
"Error parsing WKT: {}"
,
wktPolygon
,
e
);
logger
.
error
(
"Error parsing WKT: {}"
,
wktPolygon
,
e
);
...
@@ -121,10 +119,8 @@ public class CityGMLServerController {
...
@@ -121,10 +119,8 @@ public class CityGMLServerController {
throw
new
RuntimeException
(
"Failed to retrieve CityGML"
,
e
);
throw
new
RuntimeException
(
"Failed to retrieve CityGML"
,
e
);
}
}
};
};
return
ResponseEntity
.
ok
()
return
ResponseEntity
.
ok
().
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\"citygml.gml\""
)
.
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\"citygml.gml\""
)
.
contentType
(
MediaType
.
APPLICATION_XML
).
body
(
stream
);
.
contentType
(
MediaType
.
APPLICATION_XML
)
.
body
(
stream
);
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
logger
.
error
(
"Error parsing WKT: {}"
,
wktPolygon
,
e
);
logger
.
error
(
"Error parsing WKT: {}"
,
wktPolygon
,
e
);
...
...
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