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
fe9cb4bb
Commit
fe9cb4bb
authored
Nov 27, 2025
by
Luna Riegel
Browse files
Refactor: Remove obsolete function
parent
6310cfc3
Changes
4
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/CacheManager.java
View file @
fe9cb4bb
...
...
@@ -52,8 +52,4 @@ public class CacheManager {
return
new
UnconnectedCache
();
}
public
static
void
preCacheFeatures
(
List
<
GmlId
>
features
)
{
cache
.
preCacheFeatures
(
features
);
}
}
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/DatabaseHandler.java
View file @
fe9cb4bb
...
...
@@ -14,7 +14,6 @@ import org.apache.commons.lang3.SerializationUtils;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.h2gis.functions.factory.H2GISDBFactory
;
import
org.h2gis.utilities.wrapper.ConnectionWrapper
;
import
org.h2gis.utilities.wrapper.DataSourceWrapper
;
import
java.io.ByteArrayInputStream
;
...
...
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/FeatureCache.java
View file @
fe9cb4bb
...
...
@@ -89,10 +89,6 @@ public class FeatureCache implements CityObjectCache{
public
void
preCacheFeatures
(
List
<
GmlId
>
ids
)
{
cache
.
getAll
(
ids
);
}
@Override
public
void
replace
(
GmlId
id
,
CityObject
cityObject
)
{
cache
.
invalidate
(
id
);
...
...
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModel.java
View file @
fe9cb4bb
...
...
@@ -199,19 +199,6 @@ public class CityDoctorModel {
}
}
public
void
preCacheShownFeatures
(){
List
<
GmlId
>
features
=
new
ArrayList
<>();
features
.
addAll
(
buildings
.
subList
(
0
,
Math
.
min
(
buildings
.
size
(),
200
)));
features
.
addAll
(
vegetation
.
subList
(
0
,
Math
.
min
(
vegetation
.
size
(),
200
)));
features
.
addAll
(
bridges
.
subList
(
0
,
Math
.
min
(
bridges
.
size
(),
200
)));
features
.
addAll
(
land
.
subList
(
0
,
Math
.
min
(
land
.
size
(),
200
)));
features
.
addAll
(
roads
.
subList
(
0
,
Math
.
min
(
roads
.
size
(),
200
)));
features
.
addAll
(
tunnels
.
subList
(
0
,
Math
.
min
(
tunnels
.
size
(),
200
)));
features
.
addAll
(
water
.
subList
(
0
,
Math
.
min
(
water
.
size
(),
200
)));
features
.
addAll
(
cityfurniture
.
subList
(
0
,
Math
.
min
(
cityfurniture
.
size
(),
200
)));
features
.
addAll
(
genericObjects
.
subList
(
0
,
Math
.
min
(
genericObjects
.
size
(),
200
)));
CacheManager
.
preCacheFeatures
(
features
);
}
private
void
exportAsGML
(
String
file
)
throws
CityDoctorWriteException
{
CityGMLWriterUtils
.
writeCityModel
(
file
,
this
);
...
...
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