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
3d023f81
Commit
3d023f81
authored
Nov 11, 2025
by
Luna Riegel
Browse files
Refactor: Delete obsolete function
parent
d73e3bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/DatabaseHandler.java
View file @
3d023f81
...
...
@@ -226,22 +226,6 @@ public class DatabaseHandler {
return
cos
;
}
public
List
<
GmlId
>
getAllGmlIds
()
{
List
<
GmlId
>
cos
=
new
ArrayList
<>();
try
(
Connection
con
=
new
ConnectionWrapper
(
H2GISDBFactory
.
openSpatialDataBase
(
DB_NAME
)))
{
try
(
PreparedStatement
ps
=
con
.
prepareStatement
(
"SELECT gmlid FROM features"
))
{
ResultSet
rs
=
ps
.
executeQuery
();
while
(
rs
.
next
())
{
cos
.
add
(
new
GmlId
(
rs
.
getString
(
"gmlid"
)));
}
}
}
catch
(
SQLException
e
)
{
//TODO: Localize String
logger
.
error
(
"Connection to database failed while trying to get all CityObjects!"
);
logger
.
debug
(
e
.
getMessage
());
}
return
cos
;
}
public
List
<
GmlId
>
getBufferIntersectingObjects
(
CityObject
co
,
double
bufferSize
)
{
return
getBufferIntersectingObjects
(
co
.
getGmlId
(),
bufferSize
);
...
...
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