Class TiledGeoJsonDataset
java.lang.Object
com.google.common.cache.CacheLoader<ChunkPos,CompletableFuture<GeoJsonObject[]>>
net.buildtheearth.terraminusminus.dataset.Dataset<ChunkPos,GeoJsonObject[]>
net.buildtheearth.terraminusminus.dataset.TiledDataset<GeoJsonObject[]>
net.buildtheearth.terraminusminus.dataset.geojson.dataset.TiledGeoJsonDataset
- All Implemented Interfaces:
IDataset<ChunkPos,,GeoJsonObject[]> IElementDataset<GeoJsonObject[]>
public class TiledGeoJsonDataset
extends TiledDataset<GeoJsonObject[]>
implements IElementDataset<GeoJsonObject[]>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException -
Field Summary
FieldsFields inherited from class net.buildtheearth.terraminusminus.dataset.TiledDataset
projection, tileSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsync(@NonNull CornerBoundingBox2d bounds) Gets all of the elements that intersect the given bounding box.Methods inherited from class net.buildtheearth.terraminusminus.dataset.TiledDataset
projection, tileSizeMethods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
delegate
-
-
Constructor Details
-
TiledGeoJsonDataset
-
-
Method Details
-
load
- Specified by:
loadin classDataset<ChunkPos,GeoJsonObject[]> - Throws:
Exception
-
getAsync
public CompletableFuture<GeoJsonObject[][]> getAsync(@NonNull @NonNull CornerBoundingBox2d bounds) throws OutOfProjectionBoundsException Description copied from interface:IElementDatasetGets all of the elements that intersect the given bounding box.- Specified by:
getAsyncin interfaceIElementDataset<GeoJsonObject[]>- Parameters:
bounds- the bounding box- Returns:
- a
CompletableFuturewhich will be completed with the elements - Throws:
OutOfProjectionBoundsException
-