16 #ifndef QGSVECTORTILELAYER_H
17 #define QGSVECTORTILELAYER_H
19 #include "qgis_core.h"
103 : transformContext( transformContext )
115 SIP_PYOBJECT __repr__();
117 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
118 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
129 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
130 bool readSymbology( const QDomNode &node, QString &errorMessage,
132 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
133 StyleCategories categories = AllStyleCategories ) const override;
135 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
136 Qgis::MapLayerProperties properties() const override;
149 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
151 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
154 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
155 QString htmlMetadata() const override;
207 bool loadDataSource();
218 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
220 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
222 bool mTileBorderRendering =
false;
224 QVariantMap mArcgisLayerConfiguration;
228 std::unique_ptr< QgsDataProvider > mDataProvider;
230 bool setupArcgisVectorTileServiceConnection(
const QString &uri,
const QgsDataSourceUri &dataSourceUri );
232 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
251 QgsDataProvider::ReadFlags flags );
253 QString
name()
const override;
The Qgis class provides global constants for use throughout the application.
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
virtual QString name() const =0
Returns a provider name.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual QString description() const =0
Returns description.
virtual bool renderInPreview(const QgsDataProvider::PreviewContext &context)
Returns whether the layer must be rendered in preview jobs.
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
Class for storing the component parts of a RDBMS data source URI (e.g.
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.
A rectangle specified with double values.
Contains information about the context of a rendering 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)
QString sourcePath() const
Returns URL/path of the data source (syntax different to each data source type)
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Abstract base class for all vector tile renderer implementations.
Stores settings related to the context in which a preview job runs.
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.