16 #ifndef QGSVECTORTILEMVTENCODER_H
17 #define QGSVECTORTILEMVTENCODER_H
23 #include "vector_tile.pb.h"
67 void addLayer(
QgsVectorLayer *layer,
QgsFeedback *feedback =
nullptr, QString filterExpression = QString(), QString layerName = QString() );
70 QByteArray encode()
const;
73 void addFeature( vector_tile::Tile_Layer *tileLayer,
const QgsFeature &f );
77 int mResolution = 4096;
86 vector_tile::Tile tile;
88 QMap<QVariant, int> mKnownValues;
This class represents a coordinate reference system (CRS).
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.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
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)