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 StringCOLUMN_ID_1id 1 field name, tableNamestatic StringCOLUMN_ID_2id 2 field name, zoomLevelstatic StringCOLUMN_MATRIX_HEIGHTmatrixHeight field namestatic StringCOLUMN_MATRIX_WIDTHmatrixWidth field namestatic StringCOLUMN_PIXEL_X_SIZEpixelXSize field namestatic StringCOLUMN_PIXEL_Y_SIZEpixelYSize field namestatic StringCOLUMN_TABLE_NAMEtableName field namestatic StringCOLUMN_TILE_HEIGHTtileHeight field namestatic StringCOLUMN_TILE_WIDTHtileWidth field namestatic StringCOLUMN_ZOOM_LEVELzoomLevel field namestatic StringTABLE_NAMETable 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 ContentsgetContents()TileMatrixKeygetId()Get the tile matrix idlonggetMatrixHeight()longgetMatrixWidth()doublegetPixelXSize()doublegetPixelYSize()StringgetTableName()longgetTileHeight()longgetTileWidth()longgetZoomLevel()voidsetContents(Contents contents)voidsetId(TileMatrixKey id)Set the tile matrix idvoidsetMatrixHeight(long matrixHeight)voidsetMatrixWidth(long matrixWidth)voidsetPixelXSize(double pixelXSize)voidsetPixelYSize(double pixelYSize)voidsetTableName(String tableName)voidsetTileHeight(long tileHeight)voidsetTileWidth(long tileWidth)voidsetZoomLevel(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)
-
-