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
ConstructorsConstructorDescriptionTileReprojection(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 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 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) Get the GeoPackageprotected longgetMapZoom(boolean reproject, TileMatrix tileMatrix) protected longGet the reprojection tile DAOGet the tile DAOgetTileDao(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 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:
getOptimizeZoomin classTileReprojectionCore
-
createReprojectTileDao
- Specified by:
createReprojectTileDaoin classTileReprojectionCore
-
getTileDao
Get the corresponding tile dao- Parameters:
reproject- true for reprojection- Returns:
- tile dao
-
getTileMatrixSet
- Specified by:
getTileMatrixSetin classTileReprojectionCore
-
getTileMatrices
- Specified by:
getTileMatricesin classTileReprojectionCore
-
getTileMatrix
- Specified by:
getTileMatrixin classTileReprojectionCore
-
deleteTileMatrices
- Specified by:
deleteTileMatricesin classTileReprojectionCore
-
getMapZoom
- Specified by:
getMapZoomin classTileReprojectionCore
-
createTileMatrix
- 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
-