MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLGPkgPyramidLevel Class Reference

Detailed Description

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
 

Member Function Documentation

◆ getTileRawData()

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.

Parameters
tileColumnThe column of the tile to query.
tileRowThe row of the tile to query.
bufferThe buffer to store the queried BLOB data in.
sizeThe size of the provided buffer.
Returns
true if the data was queried, or false if an error occurred.

◆ getTileRawDataSize()

unsigned int TSLGPkgPyramidLevel::getTileRawDataSize ( int tileColumn,
int tileRow ) const

Query the size of the raw SQLite BLOB, for the specified tile.

Parameters
tileColumnThe column of the tile to query.
tileRowThe row of the tile to query.
Returns
the size of the raw SQLite BLOB, for the specified tile.

◆ hasData()

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.

◆ numberOfTileColumns()

int TSLGPkgPyramidLevel::numberOfTileColumns ( ) const

Returns the number of columns (>=1) in the tile matrix at this zoom level.

◆ numberOfTileRows()

int TSLGPkgPyramidLevel::numberOfTileRows ( ) const

Returns the number of rows (>=1) in the tile matrix at this zoom level.

◆ pixelXSize()

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.

◆ pixelYSize()

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.

◆ tileHeight()

int TSLGPkgPyramidLevel::tileHeight ( ) const

Returns the Tile Height in pixels (>=1) for this Zoom Level.

◆ tileWidth()

int TSLGPkgPyramidLevel::tileWidth ( ) const

Returns the Tile Width in pixels (>=1) for this Zoom Level.

◆ zoomLevel()

int TSLGPkgPyramidLevel::zoomLevel ( ) const

Returns the Zoom Level within the Tile Pyramid.