QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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;
92 #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. Tile matrix is identified by the zoomLevel(),...
A rectangle specified with double values.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
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.
This class represents a coordinate reference system (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 unique ID, geometry and a list of field...
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.