Package mil.nga.geopackage.tiles
Class GeoPackageTileRetriever
- java.lang.Object
-
- mil.nga.geopackage.tiles.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
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description GeoPackageTileRetriever(TileDao tileDao)Constructor using GeoPackage tile sizesGeoPackageTileRetriever(TileDao tileDao, Integer width, Integer height, String imageFormat)Constructor with specified tile sizeGeoPackageTileRetriever(TileDao tileDao, String imageFormat)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
-
GeoPackageTileRetriever
public GeoPackageTileRetriever(TileDao tileDao, String imageFormat)
Constructor with specified tile size- Parameters:
tileDao- tile daoimageFormat- image format
-
-
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
-
-