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 TileReprojectioncreate(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackagestatic TileReprojectioncreate(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackagestatic TileReprojectioncreate(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 TileReprojectioncreate(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 TileReprojectioncreate(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojectioncreate(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)Create a Reprojection from a GeoPackage tile table, replacing the existing tilesstatic TileReprojectioncreate(GeoPackage geoPackage, String table, TileDao reprojectTileDao)Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojectioncreate(GeoPackage geoPackage, String table, Projection projection)Create a Reprojection from a GeoPackage tile table, replacing the existing tilesstatic TileReprojectioncreate(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)Create a Reprojection from a tile table to a new tile table in a specified GeoPackagestatic TileReprojectioncreate(TileDao tileDao, GeoPackage geoPackage, String reprojectTable, Projection projection)Create a Reprojection from a tile table to a new tile table in a specified GeoPackagestatic TileReprojectioncreate(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)Create a Reprojection from a GeoPackage tile table to a new tile tablestatic TileReprojectioncreate(TileDao tileDao, TileDao reprojectTileDao)Create a Reprojection from a GeoPackage tile table to a new tile tableprotected TileDaocreateReprojectTileDao(String table)protected voidcreateTileMatrix(TileMatrix tileMatrix)protected voiddeleteTileMatrices(boolean reproject, String table)GeoPackagegetGeoPackage()Get the GeoPackageprotected longgetMapZoom(boolean reproject, TileMatrix tileMatrix)protected longgetOptimizeZoom()TileDaogetReprojectTileDao()Get the reprojection tile DAOTileDaogetTileDao()Get the tile DAOTileDaogetTileDao(boolean reproject)Get the corresponding tile daoprotected List<TileMatrix>getTileMatrices(boolean reproject)protected TileMatrixgetTileMatrix(boolean reproject, long zoom)protected TileMatrixSetgetTileMatrixSet(boolean reproject)protected intreproject(long zoom, long toZoom, BoundingBox boundingBox, long matrixWidth, long matrixHeight, long tileWidth, long tileHeight)static intreproject(GeoPackage geoPackage, String table, String reprojectTable, TileReprojectionOptimize optimize)Reproject a GeoPackage tile table to a new tile table within the GeoPackagestatic intreproject(GeoPackage geoPackage, String table, String reprojectTable, Projection projection)Reproject a GeoPackage tile table to a new tile table within the GeoPackagestatic intreproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)Reproject a GeoPackage tile table to a new tile table in a specified GeoPackagestatic intreproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)Reproject a GeoPackage tile table to a new tile table in a specified GeoPackagestatic intreproject(GeoPackage geoPackage, String table, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)Reproject a GeoPackage tile table to a new tile tablestatic intreproject(GeoPackage geoPackage, String table, TileReprojectionOptimize optimize)Reproject a GeoPackage tile table, replacing the existing tilesstatic intreproject(GeoPackage geoPackage, String table, TileDao reprojectTileDao)Reproject a GeoPackage tile table to a new tile tablestatic intreproject(GeoPackage geoPackage, String table, Projection projection)Reproject a GeoPackage tile table, replacing the existing tilesstatic intreproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, TileReprojectionOptimize optimize)Reproject a tile table to a new tile table in a specified GeoPackagestatic intreproject(TileDao tileDao, GeoPackage reprojectGeoPackage, String reprojectTable, Projection projection)Reproject a tile table to a new tile table in a specified GeoPackagestatic intreproject(TileDao tileDao, GeoPackage reprojectGeoPackage, TileDao reprojectTileDao)Reproject a GeoPackage tile table to a new tile tablestatic intreproject(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:
getOptimizeZoomin classTileReprojectionCore
-
createReprojectTileDao
protected TileDao createReprojectTileDao(String table)
- Specified by:
createReprojectTileDaoin 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:
getTileMatrixSetin classTileReprojectionCore
-
getTileMatrices
protected List<TileMatrix> getTileMatrices(boolean reproject)
- Specified by:
getTileMatricesin classTileReprojectionCore
-
getTileMatrix
protected TileMatrix getTileMatrix(boolean reproject, long zoom)
- Specified by:
getTileMatrixin classTileReprojectionCore
-
deleteTileMatrices
protected void deleteTileMatrices(boolean reproject, String table)- Specified by:
deleteTileMatricesin classTileReprojectionCore
-
getMapZoom
protected long getMapZoom(boolean reproject, TileMatrix tileMatrix)- Specified by:
getMapZoomin classTileReprojectionCore
-
createTileMatrix
protected void createTileMatrix(TileMatrix tileMatrix)
- Specified by:
createTileMatrixin classTileReprojectionCore
-
reproject
protected int reproject(long zoom, long toZoom, BoundingBox boundingBox, long matrixWidth, long matrixHeight, long tileWidth, long tileHeight)- Specified by:
reprojectin classTileReprojectionCore
-
-