Class GeoPackageTileRetriever
java.lang.Object
mil.nga.geopackage.tiles.retriever.GeoPackageTileRetriever
- All Implemented Interfaces:
TileRetriever
GeoPackage Tile Retriever, retrieves a tile from a GeoPackage from XYZ coordinates
- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionGeoPackageTileRetriever(TileDao tileDao) Constructor using GeoPackage tile sizesGeoPackageTileRetriever(TileDao tileDao, Integer width, Integer height) Constructor with specified tile size -
Method Summary
Modifier and TypeMethodDescriptionGet the Tile Scaling optionsgetTile(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 Details
-
GeoPackageTileRetriever
Constructor using GeoPackage tile sizes- Parameters:
tileDao- tile dao
-
GeoPackageTileRetriever
Constructor with specified tile size- Parameters:
tileDao- tile daowidth- widthheight- height
-
-
Method Details
-
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
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
Get the Tile Scaling options- Returns:
- tile scaling options
- Since:
- 2.0.2
-
setScaling
Set the Tile Scaling options- Parameters:
scaling- tile scaling options- Since:
- 2.0.2
-