Class XYZGeoPackageTileRetriever
- java.lang.Object
-
- mil.nga.geopackage.tiles.retriever.XYZGeoPackageTileRetriever
-
- All Implemented Interfaces:
TileRetriever
public class XYZGeoPackageTileRetriever extends Object implements TileRetriever
XYZ GeoPackage Tile Retriever, assumes XYZ tiles- Since:
- 3.5.0
-
-
Constructor Summary
Constructors Constructor Description XYZGeoPackageTileRetriever(TileDao tileDao)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoPackageTilegetTile(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 zoom
-
-
-
Constructor Detail
-
XYZGeoPackageTileRetriever
public XYZGeoPackageTileRetriever(TileDao tileDao)
Constructor- 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
-
-