16 #ifndef QGSVECTORTILEMVTENCODER_H
17 #define QGSVECTORTILEMVTENCODER_H
23 #include "vector_tile.pb.h"
64 void addLayer(
QgsVectorLayer *layer,
QgsFeedback *feedback =
nullptr, QString filterExpression = QString(), QString layerName = QString() );
67 QByteArray encode()
const;
70 void addFeature( vector_tile::Tile_Layer *tileLayer,
const QgsFeature &f );
74 int mResolution = 4096;
82 vector_tile::Tile tile;
84 QMap<QVariant, int> mKnownValues;
Contains information about the context in which a coordinate transform is executed.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
A rectangle specified with double values.
Stores coordinates of a tile in a tile matrix set.
Represents a vector layer which manages a vector based data sets.
Handles conversion of vector features to Mapbox vector tiles encoding.
int resolution() const
Returns resolution of coordinates of geometries within the tile. The default is 4096.
void setTileBuffer(int buffer)
Sets size of the buffer zone around tile edges in integer tile coordinates.
int tileBuffer() const
Returns size of the buffer zone around tile edges in integer tile coordinates. The default is 256 (~6...
void setResolution(int extent)
Sets the resolution of coordinates of geometries within the tile.
void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets coordinate transform context for transforms between layers and tile matrix CRS.
QMap< QString, QVector< QgsFeature > > QgsVectorTileFeatures
Features of a vector tile, grouped by sub-layer names (key of the map)