![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Class that encapsulates the information contained within a GeoPackage Tile Pyramid Level.
A pyramid level consists of a sparse grid of tiles. Each tile may or may not contain any data.
The column and row indexes used by the pyramid level are relative to the bottom-left most tile.
This class represents a single zoom level of the pyramid, defined within a geopackage tiles table.
Public Member Functions | |
bool | getTileRawData (int tileColumn, int tileRow, unsigned char *buffer, unsigned int size) const |
unsigned int | getTileRawDataSize (int tileColumn, int tileRow) const |
bool | hasData () const |
int | numberOfTileColumns () const |
int | numberOfTileRows () const |
double | pixelXSize () const |
double | pixelYSize () const |
int | tileHeight () const |
int | tileWidth () const |
int | zoomLevel () const |
bool TSLGPkgPyramidLevel::getTileRawData | ( | int | tileColumn, |
int | tileRow, | ||
unsigned char * | buffer, | ||
unsigned int | size ) const |
Query the raw SQLite BLOB data for the specified tile.
The provided buffer must be large enough to hold the data. The size of the BLOB can be queried with the getTileRawDataSize method.
tileColumn | The column of the tile to query. |
tileRow | The row of the tile to query. |
buffer | The buffer to store the queried BLOB data in. |
size | The size of the provided buffer. |
unsigned int TSLGPkgPyramidLevel::getTileRawDataSize | ( | int | tileColumn, |
int | tileRow ) const |
Query the size of the raw SQLite BLOB, for the specified tile.
tileColumn | The column of the tile to query. |
tileRow | The row of the tile to query. |
bool TSLGPkgPyramidLevel::hasData | ( | ) | const |
Queries whether this pyramid level contains any tile data.
Each tile within a pyramid level may not contain any data, and a pyramid level may be completely empty.
Returns true if this pyramid level contains any data, or false otherwise.
int TSLGPkgPyramidLevel::numberOfTileColumns | ( | ) | const |
Returns the number of columns (>=1) in the tile matrix at this zoom level.
int TSLGPkgPyramidLevel::numberOfTileRows | ( | ) | const |
Returns the number of rows (>=1) in the tile matrix at this zoom level.
double TSLGPkgPyramidLevel::pixelXSize | ( | ) | const |
Query the width of a pixel, for this pyramid level.
The units of this size are specified by the coordinate system of the tile table, or metres if the coordinate system is undefined.
Returns the width of each pixel.
double TSLGPkgPyramidLevel::pixelYSize | ( | ) | const |
Query the height of a pixel, for this pyramid level.
The units of this size are specified by the coordinate system of the tile table, or metres if the coordinate system is undefined.
Returns the height of each pixel.
int TSLGPkgPyramidLevel::tileHeight | ( | ) | const |
Returns the Tile Height in pixels (>=1) for this Zoom Level.
int TSLGPkgPyramidLevel::tileWidth | ( | ) | const |
Returns the Tile Width in pixels (>=1) for this Zoom Level.
int TSLGPkgPyramidLevel::zoomLevel | ( | ) | const |
Returns the Zoom Level within the Tile Pyramid.