QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORTILEWRITER_H
17 #define QGSVECTORTILEWRITER_H
19 #include <QCoreApplication>
118 QString mFilterExpression;
142 void setLayers(
const QList<QgsVectorTileWriter::Layer> &layers ) { mLayers = layers; }
145 void setMetadata(
const QVariantMap &metadata ) { mMetadata = metadata; }
157 bool writeTiles(
QgsFeedback *feedback =
nullptr );
169 bool writeTileFileXYZ(
const QString &sourcePath,
QgsTileXYZ tileID,
const QgsTileMatrix &tileMatrix,
const QByteArray &tileData );
170 QString mbtilesJsonSchema();
176 QList<Layer> mLayers;
177 QString mDestinationUri;
178 QVariantMap mMetadata;
181 QString mErrorMessage;
184 #endif // QGSVECTORTILEWRITER_H
int minZoom() const
Returns minimum zoom level at which this layer will be used. Negative value means no min....
QString errorMessage() const
Returns error message related to the previous call to writeTiles().
void setLayerName(const QString &name)
Sets layer name in the output. If not set, layer()->name() will be used.
void setMinZoom(int minzoom)
Sets minimum zoom level at which this layer will be used. Negative value means no min....
void setMaxZoom(int maxzoom)
Sets maximum zoom level at which this layer will be used. Negative value means no max....
QString filterExpression() const
Returns filter expression. If not empty, only features matching the expression will be used.
void setFilterExpression(const QString &expr)
Sets filter expression. If not empty, only features matching the expression will be used.
void setDestinationUri(const QString &uri)
Sets where and how the vector tiles will be written.
void setMetadata(const QVariantMap &metadata)
Sets that will be written to the output dataset. See class description for more on metadata support.
int maxZoom() const
Returns maximum zoom level at which this layer will be used. Negative value means no max....
void setLayers(const QList< QgsVectorTileWriter::Layer > &layers)
Sets vector layers and their configuration for output of vector tiles.
void setMinZoom(int minZoom)
Sets the minimum zoom level of tiles. Allowed values are in interval [0,24].
void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets coordinate transform context for transforms between layers and tile matrix CRS.
void setMaxZoom(int maxZoom)
Sets the maximum zoom level of tiles. Allowed values are in interval [0,24].
QgsVectorLayer * layer() const
Returns vector layer of this entry.
Layer(QgsVectorLayer *layer)
Constructs an entry for a vector layer.
QString layerName() const
Returns layer name in the output. If not set, layer()->name() will be used.
void setExtent(const QgsRectangle &extent)
Sets extent of vector tile output.