Class TileReprojection
- java.lang.Object
-
- mil.nga.geopackage.tiles.reproject.TileReprojectionCore
-
- mil.nga.geopackage.tiles.reproject.TileReprojection
-
public class TileReprojection extends TileReprojectionCore
Tile Reprojection for reprojecting an existing tile table- Since:
- 5.0.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.tiles.reproject.TileReprojectionCore
geoPackage, optimize, optimizeTileGrid, optimizeZoom, overwrite, progress, projection, replace, reprojectTileDao, table, tileDao, tileHeight, tileWidth, zoomConfigs
-
-
Constructor Summary
Constructors Constructor Description TileReprojection(TileDao tileDao, GeoPackage geoPackage, String table, Projection projection)
Constructor, reproject a tile table to a new tile table in a specified GeoPackageTileReprojection(TileDao tileDao, GeoPackage geoPackage, TileDao reprojectTileDao)
Constructor, reproject a GeoPackage tile table to a new tile tableTileReprojection(TileDao tileDao, TileDao reprojectTileDao)
Constructor, reproject a GeoPackage tile table to a new tile table
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TileReprojection
create(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackagestatic TileReprojection
create(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackagestatic TileReprojection
create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackagestatic TileReprojection
create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackagestatic TileReprojection
create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojection
create(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table, replacing the existing tilesstatic TileReprojection
create(GeoPackage geoPackage, String table, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojection
create(GeoPackage geoPackage, String table, Projection projection)
Create a Reprojection from a GeoPackage tile table, replacing the existing tilesstatic TileReprojection
create(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a tile table to a new tile table in a specified GeoPackagestatic TileReprojection
create(TileDao tileDao, GeoPackage geoPackage, String reprojectTable, Projection projection)
Create a Reprojection from a tile table to a new tile table in a specified GeoPackagestatic TileReprojection
create(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojection
create(TileDao tileDao, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile tableprotected TileDao
createReprojectTileDao(String table)
protected void
createTileMatrix(TileMatrix tileMatrix)
protected void
deleteTileMatrices(boolean reproject, String table)
GeoPackage
getGeoPackage()
Get the GeoPackageprotected long
getMapZoom(boolean reproject, TileMatrix tileMatrix)
protected long
getOptimizeZoom()
TileDao
getReprojectTileDao()
Get the reprojection tile DAOTileDao
getTileDao()
Get the tile DAOTileDao
getTileDao(boolean reproject)
Get the corresponding tile daoprotected List<TileMatrix>
getTileMatrices(boolean reproject)
protected TileMatrix
getTileMatrix(boolean reproject, long zoom)
protected TileMatrixSet
getTileMatrixSet(boolean reproject)
protected int
reproject(long zoom, long toZoom, BoundingBox boundingBox, long matrixWidth, long matrixHeight, long tileWidth, long tileHeight)
static int
reproject(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table to a new tile table within the GeoPackagestatic int
reproject(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)
Reproject a GeoPackage tile table to a new tile table within the GeoPackagestatic int
reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackagestatic int
reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackagestatic int
reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile tablestatic int
reproject(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table, replacing the existing tilesstatic int
reproject(GeoPackage geoPackage, String table, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile tablestatic int
reproject(GeoPackage geoPackage, String table, Projection projection)
Reproject a GeoPackage tile table, replacing the existing tilesstatic int
reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a tile table to a new tile table in a specified GeoPackagestatic int
reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Reproject a tile table to a new tile table in a specified GeoPackagestatic int
reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile tablestatic int
reproject(TileDao tileDao, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile table-
Methods inherited from class mil.nga.geopackage.tiles.reproject.TileReprojectionCore
finish, getConfig, getConfigOrCreate, getMatrixHeight, getMatrixWidth, getOptimize, getProgress, getTileHeight, getTileHeight, getTileWidth, getTileWidth, getToZoom, getZoomConfigs, initialize, isActive, isOverwrite, optimize, reproject, reproject, reproject, reproject, setConfig, setMatrixHeight, setMatrixWidth, setOptimize, setOverwrite, setProgress, setTileHeight, setTileHeight, setTileWidth, setTileWidth, setToZoom
-
-
-
-
Constructor Detail
-
TileReprojection
public TileReprojection(TileDao tileDao, GeoPackage geoPackage, String table, Projection projection)
Constructor, reproject a tile table to a new tile table in a specified GeoPackage- Parameters:
tileDao
- tile DAOgeoPackage
- GeoPackage for reprojected tile tabletable
- new reprojected tile tableprojection
- desired projection
-
TileReprojection
public TileReprojection(TileDao tileDao, TileDao reprojectTileDao)
Constructor, reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectTileDao
- reprojection tile DAO
-
TileReprojection
public TileReprojection(TileDao tileDao, GeoPackage geoPackage, TileDao reprojectTileDao)
Constructor, reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOgeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO
-
-
Method Detail
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, Projection projection)
Create a Reprojection from a GeoPackage tile table, replacing the existing tiles- Parameters:
geoPackage
- GeoPackagetable
- tile tableprojection
- desired projection- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- tile reprojection
-
create
public static TileReprojection create(TileDao tileDao, GeoPackage geoPackage, String reprojectTable, Projection projection)
Create a Reprojection from a tile table to a new tile table in a specified GeoPackage- Parameters:
tileDao
- tile DAOgeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile table- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- tile reprojection
-
create
public static TileReprojection create(TileDao tileDao, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectTileDao
- reprojection tile DAO- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile table- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- tile reprojection
-
create
public static TileReprojection create(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Create a Reprojection from a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table, replacing the existing tiles- Parameters:
geoPackage
- GeoPackagetable
- tile tableoptimize
- desired optimization- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- tile reprojection
-
create
public static TileReprojection create(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- tile reprojection
-
create
public static TileReprojection create(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Create a Reprojection from a tile table to a new tile table in a specified GeoPackage- Parameters:
tileDao
- tile DAOreprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- tile reprojection
-
reproject
public static int reproject(GeoPackage geoPackage, String table, Projection projection)
Reproject a GeoPackage tile table, replacing the existing tiles- Parameters:
geoPackage
- GeoPackagetable
- tile tableprojection
- desired projection- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)
Reproject a GeoPackage tile table to a new tile table within the GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- created tiles
-
reproject
public static int reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)
Reproject a tile table to a new tile table in a specified GeoPackage- Parameters:
tileDao
- tile DAOreprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableprojection
- desired projection- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile table- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- created tiles
-
reproject
public static int reproject(TileDao tileDao, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectTileDao
- reprojection tile DAO- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile table- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- created tiles
-
reproject
public static int reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)
Reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table, replacing the existing tiles- Parameters:
geoPackage
- GeoPackagetable
- tile tableoptimize
- desired optimization- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table to a new tile table within the GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- created tiles
-
reproject
public static int reproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackage- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- created tiles
-
reproject
public static int reproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)
Reproject a tile table to a new tile table in a specified GeoPackage- Parameters:
tileDao
- tile DAOreprojectGeoPackage
- GeoPackage for reprojected tile tablereprojectTable
- new reprojected tile tableoptimize
- desired optimization- Returns:
- created tiles
-
getTileDao
public TileDao getTileDao()
Get the tile DAO- Returns:
- tile DAO
-
getGeoPackage
public GeoPackage getGeoPackage()
Get the GeoPackage- Returns:
- GeoPackage
-
getReprojectTileDao
public TileDao getReprojectTileDao()
Get the reprojection tile DAO- Returns:
- reprojection tile DAO
-
getOptimizeZoom
protected long getOptimizeZoom()
- Specified by:
getOptimizeZoom
in classTileReprojectionCore
-
createReprojectTileDao
protected TileDao createReprojectTileDao(String table)
- Specified by:
createReprojectTileDao
in classTileReprojectionCore
-
getTileDao
public TileDao getTileDao(boolean reproject)
Get the corresponding tile dao- Parameters:
reproject
- true for reprojection- Returns:
- tile dao
-
getTileMatrixSet
protected TileMatrixSet getTileMatrixSet(boolean reproject)
- Specified by:
getTileMatrixSet
in classTileReprojectionCore
-
getTileMatrices
protected List<TileMatrix> getTileMatrices(boolean reproject)
- Specified by:
getTileMatrices
in classTileReprojectionCore
-
getTileMatrix
protected TileMatrix getTileMatrix(boolean reproject, long zoom)
- Specified by:
getTileMatrix
in classTileReprojectionCore
-
deleteTileMatrices
protected void deleteTileMatrices(boolean reproject, String table)
- Specified by:
deleteTileMatrices
in classTileReprojectionCore
-
getMapZoom
protected long getMapZoom(boolean reproject, TileMatrix tileMatrix)
- Specified by:
getMapZoom
in classTileReprojectionCore
-
createTileMatrix
protected void createTileMatrix(TileMatrix tileMatrix)
- Specified by:
createTileMatrix
in classTileReprojectionCore
-
reproject
protected int reproject(long zoom, long toZoom, BoundingBox boundingBox, long matrixWidth, long matrixHeight, long tileWidth, long tileHeight)
- Specified by:
reproject
in classTileReprojectionCore
-
-