Commit 3d023f81 authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Delete obsolete function

parent d73e3bea
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment