QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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....
Contains information about the context in which a coordinate transform is executed.
Stores coordinates of a tile in a tile matrix set.
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.
A rectangle specified with double values.
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.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width * height) and map...
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.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
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.
Takes care of writing vector tiles.
Represents a vector layer which manages a vector based data sets.
Configuration of a single input vector layer to be included in the output.
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.