QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
88 #endif // QGSVECTORTILEMVTENCODER_H
Contains information about the context in which a coordinate transform is executed.
Stores coordinates of a tile in a tile matrix set.
A rectangle specified with double values.
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.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets coordinate transform context for transforms between layers and tile matrix CRS.
void setTileBuffer(int buffer)
Sets size of the buffer zone around tile edges in integer tile coordinates.
Represents a vector layer which manages a vector based data sets.
Handles conversion of vector features to Mapbox vector tiles encoding.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QMap< QString, QVector< QgsFeature > > QgsVectorTileFeatures
Features of a vector tile, grouped by sub-layer names (key of the map)
int resolution() const
Returns resolution of coordinates of geometries within the tile. The default is 4096.