QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsVectorTileWriter::Layer Class Reference

Configuration of a single input vector layer to be included in the output. More...

#include <qgsvectortilewriter.h>

Public Member Functions

 Layer (QgsVectorLayer *layer)
 Constructs an entry for a vector layer. More...
 
QString filterExpression () const
 Returns filter expression. If not empty, only features matching the expression will be used. More...
 
QgsVectorLayerlayer () const
 Returns vector layer of this entry. More...
 
QString layerName () const
 Returns layer name in the output. If not set, layer()->name() will be used. More...
 
int maxZoom () const
 Returns maximum zoom level at which this layer will be used. Negative value means no max. zoom level. More...
 
int minZoom () const
 Returns minimum zoom level at which this layer will be used. Negative value means no min. zoom level. More...
 
void setFilterExpression (const QString &expr)
 Sets filter expression. If not empty, only features matching the expression will be used. More...
 
void setLayerName (const QString &name)
 Sets layer name in the output. If not set, layer()->name() will be used. More...
 
void setMaxZoom (int maxzoom)
 Sets maximum zoom level at which this layer will be used. Negative value means no max. zoom level. More...
 
void setMinZoom (int minzoom)
 Sets minimum zoom level at which this layer will be used. Negative value means no min. zoom level. More...
 

Detailed Description

Configuration of a single input vector layer to be included in the output.

Since
QGIS 3.14

Definition at line 86 of file qgsvectortilewriter.h.

Constructor & Destructor Documentation

◆ Layer()

QgsVectorTileWriter::Layer::Layer ( QgsVectorLayer layer)
inlineexplicit

Constructs an entry for a vector layer.

Definition at line 90 of file qgsvectortilewriter.h.

Member Function Documentation

◆ filterExpression()

QString QgsVectorTileWriter::Layer::filterExpression ( ) const
inline

Returns filter expression. If not empty, only features matching the expression will be used.

Definition at line 99 of file qgsvectortilewriter.h.

◆ layer()

QgsVectorLayer * QgsVectorTileWriter::Layer::layer ( ) const
inline

Returns vector layer of this entry.

Definition at line 96 of file qgsvectortilewriter.h.

◆ layerName()

QString QgsVectorTileWriter::Layer::layerName ( ) const
inline

Returns layer name in the output. If not set, layer()->name() will be used.

Definition at line 104 of file qgsvectortilewriter.h.

◆ maxZoom()

int QgsVectorTileWriter::Layer::maxZoom ( ) const
inline

Returns maximum zoom level at which this layer will be used. Negative value means no max. zoom level.

Definition at line 114 of file qgsvectortilewriter.h.

◆ minZoom()

int QgsVectorTileWriter::Layer::minZoom ( ) const
inline

Returns minimum zoom level at which this layer will be used. Negative value means no min. zoom level.

Definition at line 109 of file qgsvectortilewriter.h.

◆ setFilterExpression()

void QgsVectorTileWriter::Layer::setFilterExpression ( const QString &  expr)
inline

Sets filter expression. If not empty, only features matching the expression will be used.

Definition at line 101 of file qgsvectortilewriter.h.

◆ setLayerName()

void QgsVectorTileWriter::Layer::setLayerName ( const QString &  name)
inline

Sets layer name in the output. If not set, layer()->name() will be used.

Definition at line 106 of file qgsvectortilewriter.h.

◆ setMaxZoom()

void QgsVectorTileWriter::Layer::setMaxZoom ( int  maxzoom)
inline

Sets maximum zoom level at which this layer will be used. Negative value means no max. zoom level.

Definition at line 116 of file qgsvectortilewriter.h.

◆ setMinZoom()

void QgsVectorTileWriter::Layer::setMinZoom ( int  minzoom)
inline

Sets minimum zoom level at which this layer will be used. Negative value means no min. zoom level.

Definition at line 111 of file qgsvectortilewriter.h.


The documentation for this class was generated from the following file: