QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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.
 
QString filterExpression () const
 Returns filter expression. If not empty, only features matching the expression will be used.
 
QgsVectorLayerlayer () const
 Returns vector layer of this entry.
 
QString layerName () const
 Returns layer name in the output. If not set, layer()->name() will be used.
 
int maxZoom () const
 Returns maximum zoom level at which this layer will be used. Negative value means no max. zoom level.
 
int minZoom () const
 Returns minimum zoom level at which this layer will be used. Negative value means no min. zoom level.
 
void setFilterExpression (const QString &expr)
 Sets filter expression. If not empty, only features matching the expression will be used.
 
void setLayerName (const QString &name)
 Sets layer name in the output. If not set, layer()->name() will be used.
 
void setMaxZoom (int maxzoom)
 Sets maximum zoom level at which this layer will be used. Negative value means no max. zoom level.
 
void setMinZoom (int minzoom)
 Sets minimum zoom level at which this layer will be used. Negative value means no min. zoom level.
 

Detailed Description

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

Since
QGIS 3.14

Definition at line 88 of file qgsvectortilewriter.h.

Constructor & Destructor Documentation

◆ Layer()

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

Constructs an entry for a vector layer.

Definition at line 92 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 101 of file qgsvectortilewriter.h.

◆ layer()

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

Returns vector layer of this entry.

Definition at line 98 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 106 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 116 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 111 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 103 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 108 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 118 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 113 of file qgsvectortilewriter.h.


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