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 Details

    • XYZGeoPackageTileRetriever

      public XYZGeoPackageTileRetriever(TileDao tileDao)
      Constructor
      Parameters:
      tileDao - tile dao
  • 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:
      hasTile in interface TileRetriever
      Parameters:
      x - x coordinate
      y - y coordinate
      zoom - 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:
      getTile in interface TileRetriever
      Parameters:
      x - x coordinate
      y - y coordinate
      zoom - zoom level
      Returns:
      tile with dimensions and bytes