16#ifndef QGSVECTORTILELAYER_H
17#define QGSVECTORTILELAYER_H
105 : transformContext( transformContext )
117 SIP_PYOBJECT __repr__();
119 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
120 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
131 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
132 bool readSymbology( const QDomNode &node, QString &errorMessage,
134 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
135 StyleCategories categories = AllStyleCategories ) const override;
137 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
138 Qgis::MapLayerProperties properties() const override;
151 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
169 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
172 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
173 QString htmlMetadata() const override;
187 QString sourcePath()
const;
233 QList< QgsFeature > selectedFeatures()
const;
244 int selectedFeatureCount()
const;
260 Qgis::SelectionFlags flags = Qgis::SelectionFlags(),
272 void removeSelection();
284 bool loadDataSource();
293 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
295 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
297 bool mTileBorderRendering =
false;
301 std::unique_ptr< QgsDataProvider > mDataProvider;
303 QHash< QgsFeatureId, QgsFeature > mSelectedFeatures;
305 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
308 bool loadDefaultStyleAndSubLayersPrivate( QString &error, QStringList &warnings, QList< QgsMapLayer * > *subLayers );
The Qgis class provides global constants for use throughout the application.
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
@ Intersect
Select where features intersect the reference geometry.
SelectBehavior
Specifies how a selection should be applied.
@ SetSelection
Set selection, removing any existing selection.
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A geometry is the spatial representation of a feature.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for all map layer types.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Encapsulates the context of a layer selection operation.
Stores coordinates of a tile in a tile matrix set.
Base class for labeling configuration classes for vector tile layers.
Implements a map layer that is dedicated to rendering of vector tiles.
void setTileBorderRenderingEnabled(bool enabled)
Sets whether to render also borders of tiles (useful for debugging)
QString sourceType() const
Returns type of the data source.
~QgsVectorTileLayer() override
int sourceMinZoom() const
Returns minimum zoom level at which source has any valid tiles (negative = unconstrained)
bool isTileBorderRenderingEnabled() const
Returns whether to render also borders of tiles (useful for debugging)
int sourceMaxZoom() const
Returns maximum zoom level at which source has any valid tiles (negative = unconstrained)
void selectionChanged()
Emitted whenever the selected features in the layer are changed.
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Keeps track of raw tile data that need to be decoded.
Abstract base class for all vector tile renderer implementations.
Setting options for creating vector data providers.
Setting options for loading vector tile layers.
LayerOptions(const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext())
Constructor for LayerOptions with optional transformContext.
QgsCoordinateTransformContext transformContext
Coordinate transform context.