66#define QGSCLIPBOARD_MAPLAYER_MIME "application/qgis.maplayer"
78 Q_PROPERTY( QString
id READ
id WRITE setId NOTIFY idChanged )
79 Q_PROPERTY( QString name READ name WRITE setName NOTIFY nameChanged )
80 Q_PROPERTY(
int autoRefreshInterval READ autoRefreshInterval WRITE setAutoRefreshInterval NOTIFY autoRefreshIntervalChanged )
81 Q_PROPERTY(
QgsLayerMetadata metadata READ metadata WRITE setMetadata NOTIFY metadataChanged )
85 Q_PROPERTY(
Qgis::LayerType type READ type CONSTANT )
86 Q_PROPERTY(
bool isValid READ isValid NOTIFY isValidChanged )
87 Q_PROPERTY(
double opacity READ opacity WRITE setOpacity NOTIFY opacityChanged )
88 Q_PROPERTY( QString mapTipTemplate READ mapTipTemplate WRITE setMapTipTemplate NOTIFY mapTipTemplateChanged )
89 Q_PROPERTY(
bool mapTipsEnabled READ mapTipsEnabled WRITE setMapTipsEnabled NOTIFY mapTipsEnabledChanged )
93 QgsMapLayer *layer = qobject_cast<QgsMapLayer *>( sipCpp );
99 switch ( layer->type() )
102 sipType = sipType_QgsVectorLayer;
105 sipType = sipType_QgsRasterLayer;
108 sipType = sipType_QgsPluginLayer;
111 sipType = sipType_QgsMeshLayer;
114 sipType = sipType_QgsVectorTileLayer;
117 sipType = sipType_QgsAnnotationLayer;
120 sipType = sipType_QgsPointCloudLayer;
123 sipType = sipType_QgsGroupLayer;
126 sipType = sipType_QgsTiledSceneLayer;
154 Identifiable = 1 << 0,
169 LayerConfiguration = 1 << 0,
171 Symbology3D = 1 << 2,
178 AttributeTable = 1 << 9,
180 CustomProperties = 1 << 11,
181 GeometryOptions = 1 << 12,
187 AllStyleCategories = LayerConfiguration | Symbology | Symbology3D | Labeling | Fields | Forms | Actions |
188 MapTips | Diagrams | AttributeTable | Rendering | CustomProperties | GeometryOptions | Relations | Temporal | Legend | Elevation | Notes,
190 Q_ENUM( StyleCategory )
200 QgsMapLayer(
Qgis::LayerType type =
Qgis::LayerType::Vector, const QString &name = QString(), const QString &source = QString() );
219 Qgis::LayerType type() const;
254 virtual
Qgis::MapLayerProperties properties() const;
260 static QString extensionPropertyType(
PropertyType type );
285 bool setId( const QString &
id );
291 void setName( const QString &name );
297 QString name() const;
315 Q_DECL_DEPRECATED
void setShortName( const QString &shortName )
SIP_DEPRECATED;
329 Q_DECL_DEPRECATED
void setTitle( const QString &title )
SIP_DEPRECATED;
343 Q_DECL_DEPRECATED
void setAbstract( const QString &abstract )
SIP_DEPRECATED;
357 Q_DECL_DEPRECATED
void setKeywordList( const QString &keywords )
SIP_DEPRECATED;
371 Q_DECL_DEPRECATED
void setDataUrl( const QString &dataUrl )
SIP_DEPRECATED;
385 Q_DECL_DEPRECATED
void setDataUrlFormat( const QString &dataUrlFormat )
SIP_DEPRECATED;
399 Q_DECL_DEPRECATED
void setAttribution( const QString &attrib )
SIP_DEPRECATED;
413 Q_DECL_DEPRECATED
void setAttributionUrl( const QString &attribUrl )
SIP_DEPRECATED;
444 Q_DECL_DEPRECATED
void setMetadataUrl(
const QString &metaUrl )
SIP_DEPRECATED;
465 Q_DECL_DEPRECATED
void setMetadataUrlType( const QString &metaUrlType )
SIP_DEPRECATED;
486 Q_DECL_DEPRECATED
void setMetadataUrlFormat( const QString &metaUrlFormat )
SIP_DEPRECATED;
497 Q_DECL_DEPRECATED QString metadataUrlFormat() const
SIP_DEPRECATED;
504 void setBlendMode( QPainter::CompositionMode blendMode );
510 QPainter::CompositionMode blendMode() const;
520 virtual
void setOpacity(
double opacity );
530 virtual
double opacity() const;
533 bool readOnly()
const {
return isReadOnly(); }
562 QgsRectangle wgs84Extent(
bool forceRecalculate =
false )
const;
569 bool isValid()
const;
578 QString publicSource(
bool hidePassword =
false )
const;
585 QString source()
const;
591 virtual QStringList subLayers()
const;
597 virtual void setLayerOrder(
const QStringList &layers );
604 virtual void setSubLayerVisibility(
const QString &name,
bool visible );
612 virtual bool supportsEditing()
const;
615 virtual bool isEditable()
const;
622 virtual bool isModified()
const;
627 virtual bool isSpatial()
const;
638 virtual bool isTemporary()
const;
646 FlagDontResolveLayers = 1 << 0,
647 FlagTrustLayerMetadata = 1 << 1,
648 FlagReadExtentFromXml = 1 << 2,
649 FlagForceReadOnly = 1 << 3,
691 bool writeLayerXml( QDomElement &layerElement, QDomDocument &document,
const QgsReadWriteContext &context )
const;
696 virtual void resolveReferences(
QgsProject *project );
702 Q_INVOKABLE QStringList customPropertyKeys()
const;
709 Q_INVOKABLE
void setCustomProperty(
const QString &key,
const QVariant &value );
715 Q_INVOKABLE QVariant customProperty(
const QString &value,
const QVariant &defaultValue = QVariant() )
const;
738 virtual int listStylesInDatabase( QStringList &ids
SIP_OUT, QStringList &names
SIP_OUT,
744 virtual QString getStyleFromDatabase(
const QString &styleId, QString &msgError
SIP_OUT );
752 virtual bool deleteStyleFromDatabase(
const QString &styleId, QString &msgError
SIP_OUT );
770 virtual void saveStyleToDatabase(
const QString &name,
const QString &description,
771 bool useAsDefault,
const QString &uiFileContent,
787 virtual QString loadNamedStyle(
const QString &theURI,
bool &resultFlag
SIP_OUT,
bool loadFromLocalDb,
806 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
807 Q_ASSERT( metaEnum.isValid() );
808 if ( !metaEnum.isValid() )
810 QgsDebugError( QStringLiteral(
"Invalid metaenum. Enum probably misses Q_ENUM or Q_FLAG declaration." ) );
816 if ( metaEnum.isValid() )
819 QByteArray ba = customProperty( key, metaEnum.valueToKey(
static_cast<int>( defaultValue ) ) ).toString().toUtf8();
820 const char *vs = ba.data();
821 v =
static_cast<T
>( metaEnum.keyToValue( vs, &ok ) );
829 v =
static_cast<T
>( customProperty( key,
static_cast<int>( defaultValue ) ).toInt( &ok ) );
830 if ( metaEnum.isValid() )
832 if ( !ok || !metaEnum.valueToKey(
static_cast<int>( v ) ) )
840 setCustomEnumProperty( key, v );
858 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
859 Q_ASSERT( metaEnum.isValid() );
860 if ( metaEnum.isValid() )
862 setCustomProperty( key, metaEnum.valueToKey(
static_cast<int>( value ) ) );
866 QgsDebugError( QStringLiteral(
"Invalid metaenum. Enum probably misses Q_ENUM or Q_FLAG declaration." ) );
884 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
885 Q_ASSERT( metaEnum.isValid() );
886 if ( !metaEnum.isValid() )
888 QgsDebugError( QStringLiteral(
"Invalid metaenum. Enum probably misses Q_ENUM or Q_FLAG declaration." ) );
894 if ( metaEnum.isValid() )
897 QByteArray ba = customProperty( key, metaEnum.valueToKeys( defaultValue ) ).toString().toUtf8();
898 const char *vs = ba.data();
899 v =
static_cast<T
>( metaEnum.keysToValue( vs, &ok ) );
904 const int intValue = customProperty( key,
static_cast<int>( defaultValue ) ).toInt( &ok );
905 if ( metaEnum.isValid() )
911 const QByteArray keys = metaEnum.valueToKeys( intValue );
912 const int intValueCheck = metaEnum.keysToValue( keys );
913 if ( intValue != intValueCheck )
924 setCustomFlagProperty( key, v );
948 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
949 Q_ASSERT( metaEnum.isValid() );
950 if ( metaEnum.isValid() )
952 setCustomProperty( key, metaEnum.valueToKeys( value ) );
956 QgsDebugError( QStringLiteral(
"Invalid metaenum. Enum probably misses Q_ENUM or Q_FLAG declaration." ) );
966 void removeCustomProperty(
const QString &key );
1073 static QString formatLayerName(
const QString &name );
1081 virtual QString metadataUri()
const;
1088 void exportNamedMetadata( QDomDocument &doc, QString &errorMsg )
const;
1098 virtual QString saveDefaultMetadata(
bool &resultFlag
SIP_OUT );
1113 QString saveNamedMetadata(
const QString &uri,
bool &resultFlag );
1131 virtual QString loadNamedMetadata(
const QString &uri,
bool &resultFlag
SIP_OUT );
1144 virtual QString loadDefaultMetadata(
bool &resultFlag );
1153 bool loadNamedMetadataFromDatabase(
const QString &db,
const QString &uri, QString &qmd );
1161 bool importNamedMetadata( QDomDocument &document, QString &errorMessage );
1171 virtual QString styleURI()
const;
1185 virtual QString loadDefaultStyle(
bool &resultFlag
SIP_OUT );
1215 virtual bool loadNamedStyleFromDatabase(
const QString &db,
const QString &uri, QString &qml
SIP_OUT );
1225 virtual bool importNamedStyle( QDomDocument &doc, QString &errorMsg
SIP_OUT,
1247 virtual void exportSldStyle( QDomDocument &doc, QString &errorMsg )
const;
1257 virtual void exportSldStyleV2( QDomDocument &doc, QString &errorMsg,
const QgsSldExportContext &exportContext )
const;
1270 virtual QString saveDefaultStyle(
bool &resultFlag
SIP_OUT, StyleCategories categories );
1300 virtual QString saveNamedStyle(
const QString &uri,
bool &resultFlag
SIP_OUT, StyleCategories categories = AllStyleCategories );
1311 virtual QString saveSldStyle(
const QString &uri,
bool &resultFlag )
const;
1333 virtual QString loadSldStyle(
const QString &uri,
bool &resultFlag );
1335 virtual bool readSld(
const QDomNode &node, QString &errorMessage )
1336 { Q_UNUSED( node ) errorMessage = QStringLiteral(
"Layer type %1 not supported" ).arg(
static_cast<int>( type() ) );
return false; }
1360 virtual bool readStyle(
const QDomNode &node, QString &errorMessage,
1387 virtual bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
const QgsReadWriteContext &context,
1420 void setDataSource(
const QString &dataSource,
const QString &baseName,
const QString &provider,
bool loadDefaultStyleFlag =
false );
1451 void setDataSource(
const QString &dataSource,
const QString &baseName,
const QString &provider,
const QgsDataProvider::ProviderOptions &options,
bool loadDefaultStyleFlag =
false );
1487 QString providerType()
const;
1490 QUndoStack *undoStack();
1495 QUndoStack *undoStackStyles();
1551 bool isInScaleRange(
double scale )
const;
1563 double minimumScale()
const;
1575 double maximumScale()
const;
1585 bool hasScaleBasedVisibility()
const;
1593 Q_DECL_DEPRECATED
bool hasAutoRefreshEnabled() const
SIP_DEPRECATED;
1601 Qgis::AutoRefreshMode autoRefreshMode() const;
1609 int autoRefreshInterval() const;
1621 void setAutoRefreshInterval(
int interval );
1629 Q_DECL_DEPRECATED
void setAutoRefreshEnabled(
bool enabled )
SIP_DEPRECATED;
1637 void setAutoRefreshMode(
Qgis::AutoRefreshMode mode );
1656 virtual QString htmlMetadata() const;
1659 virtual QDateTime timestamp() const;
1673 QString refreshOnNotifyMessage()
const {
return mRefreshOnNofifyMessage; }
1689 QString originalXmlProperties()
const;
1698 void setOriginalXmlProperties(
const QString &originalXmlProperties );
1704 static QString generateId(
const QString &layerName );
1758 virtual bool hasMapTips()
const;
1767 QString mapTipTemplate()
const;
1776 void setMapTipTemplate(
const QString &mapTipTemplate );
1784 void setMapTipsEnabled(
bool enabled );
1790 bool mapTipsEnabled()
const;
1812 void setMinimumScale(
double scale );
1823 void setMaximumScale(
double scale );
1832 void setScaleBasedVisibility(
bool enabled );
1842 void triggerRepaint(
bool deferredUpdate =
false );
1850 void trigger3DUpdate();
1855 void emitStyleChanged();
1864 virtual bool setDependencies(
const QSet<QgsMapLayerDependency> &layers );
1870 void setRefreshOnNotifyEnabled(
bool enabled );
1888 SIP_PYOBJECT __repr__();
1890 QString
str = QStringLiteral(
"<QgsMapLayer: '%1' (%2)>" ).arg( sipCpp->name(), sipCpp->dataProvider() ? sipCpp->dataProvider()->name() : QStringLiteral(
"Invalid" ) );
1891 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
2135 void onNotified(
const QString &message );
2169 virtual void setExtent3D(
const QgsBox3D &box );
2172 void setValid(
bool valid );
2184 virtual bool writeXml( QDomNode &layer_node, QDomDocument &document,
const QgsReadWriteContext &context )
const;
2197 virtual QString encodedSource(
const QString &source,
const QgsReadWriteContext &context )
const;
2211 virtual QString decodedSource(
const QString &source,
const QString &dataProvider,
const QgsReadWriteContext &context )
const;
2218 void readCustomProperties(
const QDomNode &layerNode,
const QString &keyStartsWith = QString() );
2221 void writeCustomProperties( QDomNode &layerNode, QDomDocument &doc )
const;
2224 void readStyleManager(
const QDomNode &layerNode );
2226 void writeStyleManager( QDomNode &layerNode, QDomDocument &doc )
const;
2231 void writeCommonStyle( QDomElement &layerElement, QDomDocument &document,
2238 void readCommonStyle(
const QDomElement &layerElement,
const QgsReadWriteContext &context,
2242 void setProviderType(
const QString &providerType );
2247 void connectNotify(
const char *signal )
override;
2262 void invalidateWgs84Extent();
2265 bool mValid =
false;
2290 bool mIsRefreshOnNofifyEnabled =
false;
2306 bool mShouldValidateCrs =
true;
2313 double mLayerOpacity = 1.0;
2320 int mBlockStyleChangedSignal = 0;
2332 QString crsHtmlMetadata()
const;
2345 QString generalHtmlMetadata()
const;
2367 bool loadNamedPropertyFromDatabase(
const QString &db,
const QString &uri, QString &xml,
QgsMapLayer::PropertyType type );
2371 void updateExtent(
const QgsBox3D &extent )
const;
2373 bool rebuildCrs3D( QString *error =
nullptr );
2379 virtual bool isReadOnly()
const;
2398 QPainter::CompositionMode mBlendMode = QPainter::CompositionMode_SourceOver;
2406 double mMinScale = 0;
2408 double mMaxScale = 100000000;
2410 bool mScaleBasedVisibility =
false;
2415 std::unique_ptr< QgsMapLayerServerProperties > mServerProperties;
2418 QUndoStack *mUndoStack =
nullptr;
2420 QUndoStack *mUndoStackStyles =
nullptr;
2434 QTimer *mRefreshTimer =
nullptr;
2455 QString mOriginalXmlProperties;
2458 bool mRepaintRequestedFired =
false;
2461 QString mLegendPlaceholderImage;
2464 QString mMapTipTemplate;
2467 bool mMapTipsEnabled =
true;
2470 friend class TestQgsProject;
2471 friend class TestQgsMapLayer;
The Qgis class provides global constants for use throughout the application.
LayerType
Types of layers that can be added to a map.
@ Group
Composite group layer. Added in QGIS 3.24.
@ Plugin
Plugin based layer.
@ TiledScene
Tiled scene layer. Added in QGIS 3.34.
@ Annotation
Contains freeform, georeferenced annotations. Added in QGIS 3.16.
@ VectorTile
Vector tile layer. Added in QGIS 3.14.
@ Mesh
Mesh layer. Added in QGIS 3.2.
@ PointCloud
Point cloud layer. Added in QGIS 3.18.
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
AutoRefreshMode
Map layer automatic refresh modes.
@ Disabled
Automatic refreshing is disabled.
Base class for all renderers that may to participate in 3D view.
A 3-dimensional box composed of x, y, z coordinates.
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.
QFlags< ReadFlag > ReadFlags
QgsErrorMessage represents single error message.
QgsError is container for error messages (report).
This class models dependencies with or between map layers.
Base class for storage of map layer elevation properties.
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for storage of map layer selection properties.
Manages QGIS Server properties for a map layer.
Management of styles for use with one map layer.
Base class for storage of map layer temporal properties.
Base class for all map layer types.
void crs3DChanged()
Emitted when the crs3D() of the layer has changed.
virtual bool writeSymbology(QDomNode &node, QDomDocument &doc, QString &errorMessage, const QgsReadWriteContext &context, StyleCategories categories=AllStyleCategories) const =0
Write the style for the layer into the document provided.
QString legendUrlFormat() const
Returns the format for a URL based layer legend.
void dependenciesChanged()
Emitted when dependencies are changed.
void setError(const QgsError &error)
Sets error message.
void legendChanged()
Signal emitted when legend of the layer has changed.
QFlags< ReadFlag > ReadFlags
QFlags< LayerFlag > LayerFlags
void editingStopped()
Emitted when edited changes have been successfully written to the data provider.
void recalculateExtents() const
This is used to send a request that any mapcanvas using this layer update its extents.
void metadataChanged()
Emitted when the layer's metadata is changed.
void setLegendUrl(const QString &legendUrl)
Sets the URL for the layer's legend.
void request3DUpdate()
Signal emitted when a layer requires an update in any 3D maps.
void configChanged()
Emitted whenever the configuration is changed.
void autoRefreshIntervalChanged(int interval)
Emitted when the auto refresh interval changes.
T customFlagProperty(const QString &key, const T &defaultValue)
Returns the property value for a property based on a flag.
Q_DECL_DEPRECATED bool hasDependencyCycle(const QSet< QgsMapLayerDependency > &) const
Checks whether a new set of dependencies will introduce a cycle this method is now deprecated and alw...
void editingStarted()
Emitted when editing on this layer has started.
void isValidChanged()
Emitted when the validity of this layer changed.
QString legendPlaceholderImage() const
Returns path to the placeholder image or an empty string if a generated legend is shown.
QString mRefreshOnNofifyMessage
QString mLegendUrl
WMS legend.
QString mLayerName
Name of the layer - used for display.
void setCustomFlagProperty(const QString &key, const T &value)
Set the value of a property based on a flag.
void mapTipTemplateChanged()
Emitted when the map tip template changes.
void renderer3DChanged()
Signal emitted when 3D renderer associated with the layer has changed.
virtual QgsMapLayerSelectionProperties * selectionProperties()
Returns the layer's selection properties.
void statusChanged(const QString &status)
Emit a signal with status (e.g. to be caught by QgisApp and display a msg on status bar)
bool isRefreshOnNotifyEnabled() const
Returns true if the refresh on provider nofification is enabled.
QSet< QgsMapLayerDependency > mDependencies
List of layers that may modify this layer on modification.
QFlags< StyleCategory > StyleCategories
const QgsMapLayerServerProperties * serverProperties() const
Returns QGIS Server Properties const for the map layer.
QString mProviderKey
Data provider key (name of the data provider)
void styleChanged()
Signal emitted whenever a change affects the layer's style.
std::unique_ptr< QgsDataProvider > mPreloadedProvider
Optionally used when loading a project, it is released when the layer is effectively created.
void rendererChanged()
Signal emitted when renderer is changed.
void crsChanged()
Emitted when the crs() of the layer has changed.
void dataSourceChanged()
Emitted whenever the layer's data source has been changed.
void idChanged(const QString &id)
Emitted when the layer's ID has been changed.
void setRefreshOnNofifyMessage(const QString &message)
Set the notification message that triggers repaint If refresh on notification is enabled,...
void opacityChanged(double opacity)
Emitted when the layer's opacity is changed, where opacity is a value between 0 (transparent) and 1 (...
void styleLoaded(QgsMapLayer::StyleCategories categories)
Emitted when a style has been loaded.
virtual QgsMapLayerTemporalProperties * temporalProperties()
Returns the layer's temporal properties.
void dataChanged()
Data of layer changed.
virtual QgsMapLayerRenderer * createMapRenderer(QgsRenderContext &rendererContext)=0
Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context.
void willBeDeleted()
Emitted in the destructor when the layer is about to be deleted, but it is still in a perfectly valid...
void verticalCrsChanged()
Emitted when the verticalCrs() of the layer has changed.
void blendModeChanged(QPainter::CompositionMode blendMode)
Signal emitted when the blend mode is changed, through QgsMapLayer::setBlendMode()
virtual bool readSymbology(const QDomNode &node, QString &errorMessage, QgsReadWriteContext &context, StyleCategories categories=AllStyleCategories)=0
Read the symbology for the current layer from the DOM node supplied.
LayerFlag
Flags for the map layer.
void setLegendPlaceholderImage(const QString &imgPath)
Set placeholder image for legend.
void appendError(const QgsErrorMessage &error)
Add error message.
QString mDataSource
Data source description string, varies by layer type.
virtual bool readSld(const QDomNode &node, QString &errorMessage)
ReadFlag
Flags which control project read behavior.
void customPropertyChanged(const QString &key)
Emitted when a custom property of the layer has been changed or removed.
QString legendUrl() const
Returns the URL for the layer's legend.
void flagsChanged()
Emitted when layer's flags have been modified.
void repaintRequested(bool deferredUpdate=false)
By emitting this signal the layer tells that either appearance or content have been changed and any v...
void setLegendUrlFormat(const QString &legendUrlFormat)
Sets the format for a URL based layer legend.
void beforeResolveReferences(QgsProject *project)
Emitted when all layers are loaded and references can be resolved, just before the references of this...
virtual QgsMapLayerElevationProperties * elevationProperties()
Returns the layer's elevation properties.
virtual void setTransformContext(const QgsCoordinateTransformContext &transformContext)=0
Sets the coordinate transform context to transformContext.
void nameChanged()
Emitted when the name has been changed.
T customEnumProperty(const QString &key, const T &defaultValue)
Returns the property value for a property based on an enum.
StyleCategory
Categories of style to distinguish appropriate sections for import/export.
void layerModified()
Emitted when modifications has been done on layer.
virtual Q_INVOKABLE void reload()
Synchronises with changes in the datasource.
void mapTipsEnabledChanged()
Emitted when map tips are enabled or disabled for the layer.
void setCustomEnumProperty(const QString &key, const T &value)
Set the value of a property based on an enum.
PropertyType
Maplayer has a style and a metadata property.
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
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.
The QgsSldExportContext class holds SLD export options and other information related to SLD export of...
An interface for classes which can visit style entity (e.g.
Represents a vector layer which manages a vector based data sets.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_ENUM_BASETYPE(type)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
#define QgsDebugError(str)
QPointer< QgsMapLayer > QgsWeakMapLayerPointer
Weak pointer for QgsMapLayer.
QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList
A list of weak pointers to QgsMapLayers.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)
const QgsCoordinateReferenceSystem & crs
Setting options for creating vector data providers.