Class GeoPackageTileRetriever
- java.lang.Object
-
- mil.nga.geopackage.tiles.retriever.GeoPackageTileRetriever
-
- All Implemented Interfaces:
TileRetriever
public class GeoPackageTileRetriever extends Object implements TileRetriever
GeoPackage Tile Retriever, retrieves a tile from a GeoPackage from XYZ coordinates- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description GeoPackageTileRetriever(TileDao tileDao)Constructor using GeoPackage tile sizesGeoPackageTileRetriever(TileDao tileDao, Integer width, Integer height)Constructor with specified tile size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileScalinggetScaling()Get the Tile Scaling optionsGeoPackageTilegetTile(int x, int y, int zoom)Get a tile from the x, y, and zoombooleanhasTile(int x, int y, int zoom)Check if there is a tile for the x, y, and zoomvoidsetScaling(TileScaling scaling)Set the Tile Scaling options
-
-
-
Constructor Detail
-
GeoPackageTileRetriever
public GeoPackageTileRetriever(TileDao tileDao)
Constructor using GeoPackage tile sizes- Parameters:
tileDao- tile dao
-
-
Method Detail
-
hasTile
public boolean hasTile(int x, int y, int zoom)Check if there is a tile for the x, y, and zoom- Specified by:
hasTilein interfaceTileRetriever- Parameters:
x- x coordinatey- y coordinatezoom- zoom level- Returns:
- true if a tile exists
-
getTile
public GeoPackageTile getTile(int x, int y, int zoom)
Get a tile from the x, y, and zoom- Specified by:
getTilein interfaceTileRetriever- Parameters:
x- x coordinatey- y coordinatezoom- zoom level- Returns:
- tile with dimensions and bytes
-
getScaling
public TileScaling getScaling()
Get the Tile Scaling options- Returns:
- tile scaling options
- Since:
- 2.0.2
-
setScaling
public void setScaling(TileScaling scaling)
Set the Tile Scaling options- Parameters:
scaling- tile scaling options- Since:
- 2.0.2
-
-