77 void setTileData(
const QList<TileData> &tiles )
const;
92 mutable QString mLastError;
Represents a coordinate reference system (CRS).
QgsGeoPackageTiles(const QString &filename)
Constructs the GeoPackage reader (but it does not open the file yet).
bool close()
Explicitly closes the database.
void setTileData(const QList< TileData > &tiles) const
Adds a batch of tile data within a single SQLite transaction.
bool finalize()
Finalizes the database after writing all tiles.
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.
QString lastError() const
Returns the latest error message obtained from the database.
A rectangle specified with double values.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...
Struct representing a raw image tile.