Package mil.nga.geopackage.tiles.matrix
Class TileMatrix
- java.lang.Object
-
- mil.nga.geopackage.tiles.matrix.TileMatrix
-
public class TileMatrix extends Object
Tile Matrix object. Documents the structure of the tile matrix at each zoom level in each tiles table. It allows GeoPackages to contain rectangular as well as square tiles (e.g. for better representation of polar regions). It allows tile pyramids with zoom levels that differ in resolution by factors of 2, irregular intervals, or regular intervals other than factors of 2.- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_ID_1
id 1 field name, tableNamestatic String
COLUMN_ID_2
id 2 field name, zoomLevelstatic String
COLUMN_MATRIX_HEIGHT
matrixHeight field namestatic String
COLUMN_MATRIX_WIDTH
matrixWidth field namestatic String
COLUMN_PIXEL_X_SIZE
pixelXSize field namestatic String
COLUMN_PIXEL_Y_SIZE
pixelYSize field namestatic String
COLUMN_TABLE_NAME
tableName field namestatic String
COLUMN_TILE_HEIGHT
tileHeight field namestatic String
COLUMN_TILE_WIDTH
tileWidth field namestatic String
COLUMN_ZOOM_LEVEL
zoomLevel field namestatic String
TABLE_NAME
Table name
-
Constructor Summary
Constructors Constructor Description TileMatrix()
Default ConstructorTileMatrix(TileMatrix tileMatrix)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contents
getContents()
TileMatrixKey
getId()
Get the tile matrix idlong
getMatrixHeight()
long
getMatrixWidth()
double
getPixelXSize()
double
getPixelYSize()
String
getTableName()
long
getTileHeight()
long
getTileWidth()
long
getZoomLevel()
void
setContents(Contents contents)
void
setId(TileMatrixKey id)
Set the tile matrix idvoid
setMatrixHeight(long matrixHeight)
void
setMatrixWidth(long matrixWidth)
void
setPixelXSize(double pixelXSize)
void
setPixelYSize(double pixelYSize)
void
setTableName(String tableName)
void
setTileHeight(long tileHeight)
void
setTileWidth(long tileWidth)
void
setZoomLevel(long zoomLevel)
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_TABLE_NAME
public static final String COLUMN_TABLE_NAME
tableName field name- See Also:
- Constant Field Values
-
COLUMN_ZOOM_LEVEL
public static final String COLUMN_ZOOM_LEVEL
zoomLevel field name- See Also:
- Constant Field Values
-
COLUMN_ID_1
public static final String COLUMN_ID_1
id 1 field name, tableName- See Also:
- Constant Field Values
-
COLUMN_ID_2
public static final String COLUMN_ID_2
id 2 field name, zoomLevel- See Also:
- Constant Field Values
-
COLUMN_MATRIX_WIDTH
public static final String COLUMN_MATRIX_WIDTH
matrixWidth field name- See Also:
- Constant Field Values
-
COLUMN_MATRIX_HEIGHT
public static final String COLUMN_MATRIX_HEIGHT
matrixHeight field name- See Also:
- Constant Field Values
-
COLUMN_TILE_WIDTH
public static final String COLUMN_TILE_WIDTH
tileWidth field name- See Also:
- Constant Field Values
-
COLUMN_TILE_HEIGHT
public static final String COLUMN_TILE_HEIGHT
tileHeight field name- See Also:
- Constant Field Values
-
COLUMN_PIXEL_X_SIZE
public static final String COLUMN_PIXEL_X_SIZE
pixelXSize field name- See Also:
- Constant Field Values
-
COLUMN_PIXEL_Y_SIZE
public static final String COLUMN_PIXEL_Y_SIZE
pixelYSize field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileMatrix
public TileMatrix()
Default Constructor
-
TileMatrix
public TileMatrix(TileMatrix tileMatrix)
Copy Constructor- Parameters:
tileMatrix
- tile matrix to copy- Since:
- 1.3.0
-
-
Method Detail
-
getId
public TileMatrixKey getId()
Get the tile matrix id- Returns:
- tile matrix key
-
setId
public void setId(TileMatrixKey id)
Set the tile matrix id- Parameters:
id
- id
-
getContents
public Contents getContents()
-
setContents
public void setContents(Contents contents)
-
getTableName
public String getTableName()
-
getZoomLevel
public long getZoomLevel()
-
setZoomLevel
public void setZoomLevel(long zoomLevel)
-
getMatrixWidth
public long getMatrixWidth()
-
setMatrixWidth
public void setMatrixWidth(long matrixWidth)
-
getMatrixHeight
public long getMatrixHeight()
-
setMatrixHeight
public void setMatrixHeight(long matrixHeight)
-
getTileWidth
public long getTileWidth()
-
setTileWidth
public void setTileWidth(long tileWidth)
-
getTileHeight
public long getTileHeight()
-
setTileHeight
public void setTileHeight(long tileHeight)
-
getPixelXSize
public double getPixelXSize()
-
setPixelXSize
public void setPixelXSize(double pixelXSize)
-
getPixelYSize
public double getPixelYSize()
-
setPixelYSize
public void setPixelYSize(double pixelYSize)
-
setTableName
public void setTableName(String tableName)
-
-