114 QByteArray
tileData(
int z,
int x,
int y );
123 struct zip *mZip =
nullptr;
124 mutable QVariantMap mMetadata;
126 mutable QString mTileMapPath;
127 mutable bool mHasReadTileMap =
false;
128 mutable QVariantMap mRootTileMap;
129 mutable int mPacketSize = -1;
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
A rectangle specified with double values.
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
QByteArray tileData(int z, int x, int y)
Returns the raw tile data for the matching tile.
QgsRectangle extent(const QgsCoordinateTransformContext &context) const
Returns bounding box from metadata, given in the tiles crs().
QgsVtpkTiles(const QgsVtpkTiles &other)=delete
bool isOpen() const
Returns whether the VTPK file is currently opened.
QgsVtpkTiles & operator=(const QgsVtpkTiles &other)=delete
QVariantMap rootTileMap() const
Returns the root tilemap content, if it exists.
QVariantMap spriteDefinition() const
Returns the VTPK sprites definitions.
QgsCoordinateReferenceSystem crs() const
Returns the coordinate reference system of the tiles.
QgsLayerMetadata layerMetadata() const
Reads layer metadata from the VTPK file.
bool open()
Tries to open the file, returns true on success.
QgsVtpkTiles(const QString &filename)
Constructs VTPK reader (but it does not open the file yet).
QgsVectorTileMatrixSet matrixSet() const
Returns the vector tile matrix set representing the tiles.
QVariantMap styleDefinition() const
Returns the VTPK style definition.
QVariantMap metadata() const
Returns the VTPK metadata.
QImage spriteImage() const
Returns the VTPK sprite image, if it exists.