Class TileReprojection
java.lang.Object
mil.nga.geopackage.tiles.reproject.TileReprojectionCore
mil.nga.geopackage.tiles.reproject.TileReprojection
Tile Reprojection for reprojecting an existing tile table
- Since:
- 5.0.0
-
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
ConstructorDescriptionTileReprojection
(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
Modifier and TypeMethodDescriptionstatic 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 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) Get the GeoPackageprotected long
getMapZoom
(boolean reproject, TileMatrix tileMatrix) protected long
Get the reprojection tile DAOGet the tile DAOgetTileDao
(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 a GeoPackage tile table to a new tile tableMethods 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 Details
-
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
Constructor, reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOreprojectTileDao
- reprojection tile DAO
-
TileReprojection
Constructor, reproject a GeoPackage tile table to a new tile table- Parameters:
tileDao
- tile DAOgeoPackage
- GeoPackage for reprojected tile tablereprojectTileDao
- reprojection tile DAO
-
-
Method Details
-
create
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
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
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
Reproject a GeoPackage tile table to a new tile table- Parameters:
geoPackage
- GeoPackagetable
- tile tablereprojectTileDao
- reprojection tile DAO- Returns:
- created tiles
-
reproject
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
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
Get the tile DAO- Returns:
- tile DAO
-
getGeoPackage
Get the GeoPackage- Returns:
- GeoPackage
-
getReprojectTileDao
Get the reprojection tile DAO- Returns:
- reprojection tile DAO
-
getOptimizeZoom
protected long getOptimizeZoom()- Specified by:
getOptimizeZoom
in classTileReprojectionCore
-
createReprojectTileDao
- Specified by:
createReprojectTileDao
in classTileReprojectionCore
-
getTileDao
Get the corresponding tile dao- Parameters:
reproject
- true for reprojection- Returns:
- tile dao
-
getTileMatrixSet
- Specified by:
getTileMatrixSet
in classTileReprojectionCore
-
getTileMatrices
- Specified by:
getTileMatrices
in classTileReprojectionCore
-
getTileMatrix
- Specified by:
getTileMatrix
in classTileReprojectionCore
-
deleteTileMatrices
- Specified by:
deleteTileMatrices
in classTileReprojectionCore
-
getMapZoom
- Specified by:
getMapZoom
in classTileReprojectionCore
-
createTileMatrix
- 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
-