QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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;
225 QVariantMap mArcgisStyleConfiguration;
229 std::unique_ptr< QgsDataProvider > mDataProvider;
231 bool setupArcgisVectorTileServiceConnection(
const QString &uri,
const QgsDataSourceUri &dataSourceUri );
233 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
252 QgsDataProvider::ReadFlags flags );
254 QString
name()
const override;
265 #endif // QGSVECTORTILELAYER_H
Setting options for loading vector tile layers.
Class for storing the component parts of a RDBMS data source URI (e.g. a Postgres data source).
Implements a map layer that is dedicated to rendering of vector tiles. Vector tiles compared to "ordi...
Contains information about the context in which a coordinate transform is executed.
QString sourceType() const
Returns type of the data source.
Setting options for creating vector data providers.
Stores coordinates of a tile in a tile matrix set. Tile matrix is identified by the zoomLevel(),...
The class is used as a container of context for various read/write operations on other objects.
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Abstract base class for spatial data provider implementations.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
LayerOptions(const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext())
Constructor for LayerOptions with optional transformContext.
QgsCoordinateTransformContext transformContext
Coordinate transform context.
Contains information about the context of a rendering operation.
bool isTileBorderRenderingEnabled() const
Returns whether to render also borders of tiles (useful for debugging)
A rectangle specified with double values.
virtual QString description() const =0
Returns description.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
QString sourcePath() const
Returns URL/path of the data source (syntax different to each data source type)
void setTileBorderRenderingEnabled(bool enabled)
Sets whether to render also borders of tiles (useful for debugging)
Abstract base class for all vector tile renderer implementations.
Stores settings related to the context in which a preview job runs.
This class represents a coordinate reference system (CRS).
virtual bool renderInPreview(const QgsDataProvider::PreviewContext &context)
Returns whether the layer must be rendered in preview jobs.
int sourceMaxZoom() const
Returns maximum zoom level at which source has any valid tiles (negative = unconstrained)
Base class for all map layer types. This is the base class for all map layer types (vector,...
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
The Qgis class provides global constants for use throughout the application.
Base class for labeling configuration classes for vector tile layers.
int sourceMinZoom() const
Returns minimum zoom level at which source has any valid tiles (negative = unconstrained)
virtual QString name() const =0
Returns a provider name.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.