16#ifndef QGSVECTORTILELAYER_H
17#define QGSVECTORTILELAYER_H
107 : transformContext( transformContext )
119 SIP_PYOBJECT __repr__();
121 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
122 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
133 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
134 bool readSymbology( const QDomNode &node, QString &errorMessage,
136 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
137 StyleCategories categories = AllStyleCategories ) const override;
139 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
140 Qgis::MapLayerProperties properties() const override;
153 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
171 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
174 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
175 QString htmlMetadata() const override;
235 QList< QgsFeature > selectedFeatures()
const;
246 int selectedFeatureCount()
const;
262 Qgis::SelectionFlags flags = Qgis::SelectionFlags(),
274 void removeSelection();
286 bool loadDataSource();
297 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
299 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
301 bool mTileBorderRendering =
false;
303 QVariantMap mArcgisLayerConfiguration;
304 QVariantMap mArcgisStyleConfiguration;
308 std::unique_ptr< QgsDataProvider > mDataProvider;
310 QHash< QgsFeatureId, QgsFeature > mSelectedFeatures;
312 bool setupArcgisVectorTileServiceConnection(
const QString &uri,
const QgsDataSourceUri &dataSourceUri );
314 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
317 bool loadDefaultStyleAndSubLayersPrivate( QString &error, QStringList &warnings, QList< QgsMapLayer * > *subLayers );
336 QgsDataProvider::ReadFlags flags );
338 QString
name()
const override;
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.
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.
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.
A rectangle specified with double values.
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)
QString sourcePath() const
Returns URL/path of the data source (syntax different to each data source type)
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.
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.