|
QGIS API Documentation 4.3.0-Master (0ff9723465c)
|
Utility class for creating GeoPackage raster tile databases. More...
#include <qgsgpkgtiles.h>
Classes | |
| struct | TileData |
| Struct representing a raw image tile. More... | |
Public Member Functions | |
| QgsGeoPackageTiles (const QString &filename) | |
| Constructs the GeoPackage reader (but it does not open the file yet). | |
| ~QgsGeoPackageTiles () | |
| bool | close () |
| Explicitly closes the database. | |
| bool | create (const QgsTileMatrix &z0matrix, const QgsRectangle &contentsExtent, int minZoom, int maxZoom, int tileWidth=256, int tileHeight=256) |
| Creates a new GeoPackage database and initializes it with metadata and tiles tables. | |
| bool | finalize () |
| Finalizes the database after writing all tiles. | |
| QString | lastError () const |
| Returns the latest error message obtained from the database. | |
| void | setTileData (const QList< TileData > &tiles) const |
| Adds a batch of tile data within a single SQLite transaction. | |
Utility class for creating GeoPackage raster tile databases.
Definition at line 34 of file qgsgpkgtiles.h.
|
explicit |
Constructs the GeoPackage reader (but it does not open the file yet).
Definition at line 30 of file qgsgpkgtiles.cpp.
| QgsGeoPackageTiles::~QgsGeoPackageTiles | ( | ) |
Definition at line 34 of file qgsgpkgtiles.cpp.
| bool QgsGeoPackageTiles::close | ( | ) |
Explicitly closes the database.
Definition at line 293 of file qgsgpkgtiles.cpp.
| bool QgsGeoPackageTiles::create | ( | const QgsTileMatrix & | z0matrix, |
| const QgsRectangle & | contentsExtent, | ||
| int | minZoom, | ||
| int | maxZoom, | ||
| int | tileWidth = 256, | ||
| int | tileHeight = 256 ) |
Creates a new GeoPackage database and initializes it with metadata and tiles tables.
| z0matrix | zoom level 0 tile matrix |
| contentsExtent | actual bounding box of data stored in gpkg_contents, specified in coordinates of the target crs. |
| minZoom | minimum zoom level. |
| maxZoom | maximum zoom level. |
| tileWidth | pixel width of individual tiles. |
| tileHeight | pixel height of individual tiles. |
true on success. If the file exists already, returns false.Definition at line 54 of file qgsgpkgtiles.cpp.
| bool QgsGeoPackageTiles::finalize | ( | ) |
Finalizes the database after writing all tiles.
Definition at line 39 of file qgsgpkgtiles.cpp.
|
inline |
Returns the latest error message obtained from the database.
Definition at line 87 of file qgsgpkgtiles.h.
| void QgsGeoPackageTiles::setTileData | ( | const QList< TileData > & | tiles | ) | const |
Adds a batch of tile data within a single SQLite transaction.
Definition at line 239 of file qgsgpkgtiles.cpp.