QGIS API Documentation  3.2.0-Bonn (bc43194)
qgsmaplayer.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmaplayer.h - description
3  -------------------
4  begin : Fri Jun 28 2002
5  copyright : (C) 2002 by Gary E.Sherman
6  email : sherman at mrcc.com
7 ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSMAPLAYER_H
19 #define QGSMAPLAYER_H
20 
21 #include "qgis_core.h"
22 #include <QDateTime>
23 #include <QDomNode>
24 #include <QImage>
25 #include <QObject>
26 #include <QPainter>
27 #include <QUndoStack>
28 #include <QVariant>
29 
30 #include "qgis.h"
31 #include "qgserror.h"
33 #include "qgsrectangle.h"
35 #include "qgsrendercontext.h"
36 #include "qgsmaplayerdependency.h"
37 #include "qgslayermetadata.h"
38 
40 class QgsDataProvider;
41 class QgsMapLayerLegend;
45 class QgsProject;
46 
47 class QDomDocument;
48 class QKeyEvent;
49 class QPainter;
50 
51 /*
52  * Constants used to describe copy-paste MIME types
53  */
54 #define QGSCLIPBOARD_MAPLAYER_MIME "application/qgis.maplayer"
55 
61 class CORE_EXPORT QgsMapLayer : public QObject
62 {
63  Q_OBJECT
64 
65  Q_PROPERTY( QString name READ name WRITE setName NOTIFY nameChanged )
66  Q_PROPERTY( int autoRefreshInterval READ autoRefreshInterval WRITE setAutoRefreshInterval NOTIFY autoRefreshIntervalChanged )
67  Q_PROPERTY( QgsLayerMetadata metadata READ metadata WRITE setMetadata NOTIFY metadataChanged )
68 
69 #ifdef SIP_RUN
71  QgsMapLayer *layer = qobject_cast<QgsMapLayer *>( sipCpp );
72 
73  sipType = 0;
74 
75  if ( layer )
76  {
77  switch ( layer->type() )
78  {
80  sipType = sipType_QgsVectorLayer;
81  break;
83  sipType = sipType_QgsRasterLayer;
84  break;
86  sipType = sipType_QgsPluginLayer;
87  break;
89  sipType = sipType_QgsMeshLayer;
90  break;
91  default:
92  sipType = nullptr;
93  break;
94  }
95  }
96  SIP_END
97 #endif
98 
99  public:
100 
103  {
107  MeshLayer
108  };
109 
115  {
116  Style = 0,
118  };
119 
126  QgsMapLayer( QgsMapLayer::LayerType type = VectorLayer, const QString &name = QString(), const QString &source = QString() );
127 
128  ~QgsMapLayer() override;
129 
131  QgsMapLayer( QgsMapLayer const & ) = delete;
133  QgsMapLayer &operator=( QgsMapLayer const & ) = delete;
134 
141  virtual QgsMapLayer *clone() const = 0;
142 
146  QgsMapLayer::LayerType type() const;
147 
153  static QString extensionPropertyType( PropertyType type );
154 
156  QString id() const;
157 
163  void setName( const QString &name );
164 
169  QString name() const;
170 
174  virtual QgsDataProvider *dataProvider();
175 
180  virtual const QgsDataProvider *dataProvider() const SIP_SKIP;
181 
188  void setShortName( const QString &shortName ) { mShortName = shortName; }
189 
195  QString shortName() const { return mShortName; }
196 
202  void setTitle( const QString &title ) { mTitle = title; }
203 
210  QString title() const { return mTitle; }
211 
218  void setAbstract( const QString &abstract ) { mAbstract = abstract; }
219 
226  QString abstract() const { return mAbstract; }
227 
234  void setKeywordList( const QString &keywords ) { mKeywordList = keywords; }
235 
242  QString keywordList() const { return mKeywordList; }
243 
244  /* Layer dataUrl information */
245 
253  void setDataUrl( const QString &dataUrl ) { mDataUrl = dataUrl; }
254 
262  QString dataUrl() const { return mDataUrl; }
263 
271  void setDataUrlFormat( const QString &dataUrlFormat ) { mDataUrlFormat = dataUrlFormat; }
272 
280  QString dataUrlFormat() const { return mDataUrlFormat; }
281 
282  /* Layer attribution information */
283 
291  void setAttribution( const QString &attrib ) { mAttribution = attrib; }
292 
300  QString attribution() const { return mAttribution; }
301 
309  void setAttributionUrl( const QString &attribUrl ) { mAttributionUrl = attribUrl; }
310 
318  QString attributionUrl() const { return mAttributionUrl; }
319 
320  /* Layer metadataUrl information */
321 
329  void setMetadataUrl( const QString &metaUrl ) { mMetadataUrl = metaUrl; }
330 
338  QString metadataUrl() const { return mMetadataUrl; }
339 
347  void setMetadataUrlType( const QString &metaUrlType ) { mMetadataUrlType = metaUrlType; }
348 
356  QString metadataUrlType() const { return mMetadataUrlType; }
357 
365  void setMetadataUrlFormat( const QString &metaUrlFormat ) { mMetadataUrlFormat = metaUrlFormat; }
366 
374  QString metadataUrlFormat() const { return mMetadataUrlFormat; }
375 
381  void setBlendMode( QPainter::CompositionMode blendMode );
382 
387  QPainter::CompositionMode blendMode() const;
388 
390  bool readOnly() const { return isReadOnly(); }
391 
395  virtual void reload() {}
396 
401  virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) = 0 SIP_FACTORY;
402 
404  virtual QgsRectangle extent() const;
405 
411  bool isValid() const;
412 
419  QString publicSource() const;
420 
426  QString source() const;
427 
432  virtual QStringList subLayers() const;
433 
438  virtual void setLayerOrder( const QStringList &layers );
439 
445  virtual void setSubLayerVisibility( const QString &name, bool visible );
446 
448  virtual bool isEditable() const;
449 
454  virtual bool isSpatial() const;
455 
472  bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context );
473 
491  bool writeLayerXml( QDomElement &layerElement, QDomDocument &document, const QgsReadWriteContext &context ) const;
492 
497  virtual void resolveReferences( QgsProject *project );
498 
504  QStringList customPropertyKeys() const;
505 
511  void setCustomProperty( const QString &key, const QVariant &value );
512 
517  QVariant customProperty( const QString &value, const QVariant &defaultValue = QVariant() ) const;
518 
523  void setCustomProperties( const QgsObjectCustomProperties &properties );
524 
529  void removeCustomProperty( const QString &key );
530 
536  virtual QgsError error() const;
537 
542  QgsCoordinateReferenceSystem crs() const;
543 
545  void setCrs( const QgsCoordinateReferenceSystem &srs, bool emitSignal = true );
546 
552  static QString formatLayerName( const QString &name );
553 
561  virtual QString metadataUri() const;
562 
569  void exportNamedMetadata( QDomDocument &doc, QString &errorMsg ) const;
570 
580  virtual QString saveDefaultMetadata( bool &resultFlag SIP_OUT );
581 
596  QString saveNamedMetadata( const QString &uri, bool &resultFlag );
597 
612  virtual QString loadNamedMetadata( const QString &uri, bool &resultFlag SIP_OUT );
613 
623  QString loadDefaultMetadata( bool &resultFlag );
624 
633  bool loadNamedMetadataFromDatabase( const QString &db, const QString &uri, QString &qmd );
634 
642  bool importNamedMetadata( QDomDocument &document, QString &errorMessage );
643 
651  virtual QString styleURI() const;
652 
662  virtual QString loadDefaultStyle( bool &resultFlag SIP_OUT );
663 
678  virtual QString loadNamedStyle( const QString &uri, bool &resultFlag SIP_OUT );
679 
687  virtual bool loadNamedStyleFromDatabase( const QString &db, const QString &uri, QString &qml SIP_OUT );
688 
697  virtual bool importNamedStyle( QDomDocument &doc, QString &errorMsg SIP_OUT );
698 
705  virtual void exportNamedStyle( QDomDocument &doc, QString &errorMsg ) const;
706 
707 
714  virtual void exportSldStyle( QDomDocument &doc, QString &errorMsg ) const;
715 
725  virtual QString saveDefaultStyle( bool &resultFlag SIP_OUT );
726 
741  virtual QString saveNamedStyle( const QString &uri, bool &resultFlag SIP_OUT );
742 
751  virtual QString saveSldStyle( const QString &uri, bool &resultFlag ) const;
752 
761  virtual QString loadSldStyle( const QString &uri, bool &resultFlag );
762 
763  virtual bool readSld( const QDomNode &node, QString &errorMessage )
764  { Q_UNUSED( node ); errorMessage = QStringLiteral( "Layer type %1 not supported" ).arg( type() ); return false; }
765 
766 
767 
775  virtual bool readSymbology( const QDomNode &node, QString &errorMessage, QgsReadWriteContext &context ) = 0;
776 
786  virtual bool readStyle( const QDomNode &node, QString &errorMessage, QgsReadWriteContext &context );
787 
796  virtual bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const QgsReadWriteContext &context ) const = 0;
797 
808  virtual bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage, const QgsReadWriteContext &context ) const;
809 
811  QUndoStack *undoStack();
812 
817  QUndoStack *undoStackStyles();
818 
822  void setLegendUrl( const QString &legendUrl ) { mLegendUrl = legendUrl; }
823 
827  QString legendUrl() const { return mLegendUrl; }
828 
832  void setLegendUrlFormat( const QString &legendUrlFormat ) { mLegendUrlFormat = legendUrlFormat; }
833 
837  QString legendUrlFormat() const { return mLegendUrlFormat; }
838 
844  void setLegend( QgsMapLayerLegend *legend SIP_TRANSFER );
845 
850  QgsMapLayerLegend *legend() const;
851 
856  QgsMapLayerStyleManager *styleManager() const;
857 
862  void setRenderer3D( QgsAbstract3DRenderer *renderer SIP_TRANSFER );
863 
868  QgsAbstract3DRenderer *renderer3D() const;
869 
879  bool isInScaleRange( double scale ) const;
880 
891  double minimumScale() const;
892 
903  double maximumScale() const;
904 
913  bool hasScaleBasedVisibility() const;
914 
921  bool hasAutoRefreshEnabled() const;
922 
930  int autoRefreshInterval() const;
931 
943  void setAutoRefreshInterval( int interval );
944 
951  void setAutoRefreshEnabled( bool enabled );
952 
959  virtual const QgsLayerMetadata &metadata() const;
960 
967  virtual void setMetadata( const QgsLayerMetadata &metadata );
968 
973  virtual QString htmlMetadata() const;
974 
976  virtual QDateTime timestamp() const;
977 
985  virtual QSet<QgsMapLayerDependency> dependencies() const;
986 
992  QString refreshOnNotifyMessage() const { return mRefreshOnNofifyMessage; }
993 
999  bool isRefreshOnNotifyEnabled() const { return mIsRefreshOnNofifyEnabled; }
1000 
1001  public slots:
1002 
1012  void setMinimumScale( double scale );
1013 
1023  void setMaximumScale( double scale );
1024 
1032  void setScaleBasedVisibility( bool enabled );
1033 
1042  void triggerRepaint( bool deferredUpdate = false );
1043 
1048  void emitStyleChanged();
1049 
1058  virtual bool setDependencies( const QSet<QgsMapLayerDependency> &layers );
1059 
1065  void setRefreshOnNotifyEnabled( bool enabled );
1066 
1074  void setRefreshOnNofifyMessage( const QString &message ) { mRefreshOnNofifyMessage = message; }
1075 
1076  signals:
1077 
1079  void statusChanged( const QString &status );
1080 
1086  void nameChanged();
1087 
1089  void crsChanged();
1090 
1097  void repaintRequested( bool deferredUpdate = false );
1098 
1100  void recalculateExtents() const;
1101 
1103  void dataChanged();
1104 
1106  void blendModeChanged( QPainter::CompositionMode blendMode );
1107 
1112  void rendererChanged();
1113 
1121  void styleChanged();
1122 
1127  void legendChanged();
1128 
1133  void renderer3DChanged();
1134 
1139  void configChanged();
1140 
1144  void dependenciesChanged();
1145 
1152  void willBeDeleted();
1153 
1159  void autoRefreshIntervalChanged( int interval );
1160 
1167  void metadataChanged();
1168 
1169  private slots:
1170 
1171  void onNotifiedTriggerRepaint( const QString &message );
1172 
1173  protected:
1174 
1180  void clone( QgsMapLayer *layer ) const;
1181 
1183  virtual void setExtent( const QgsRectangle &rect );
1184 
1186  void setValid( bool valid );
1187 
1192  virtual bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context );
1193 
1198  virtual bool writeXml( QDomNode &layer_node, QDomDocument &document, const QgsReadWriteContext &context ) const;
1199 
1211  virtual QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const;
1212 
1225  virtual QString decodedSource( const QString &source, const QString &dataProvider, const QgsReadWriteContext &context ) const;
1226 
1231  void readCustomProperties( const QDomNode &layerNode, const QString &keyStartsWith = QString() );
1232 
1234  void writeCustomProperties( QDomNode &layerNode, QDomDocument &doc ) const;
1235 
1237  void readStyleManager( const QDomNode &layerNode );
1239  void writeStyleManager( QDomNode &layerNode, QDomDocument &doc ) const;
1240 
1245  void writeCommonStyle( QDomElement &layerElement, QDomDocument &document, const QgsReadWriteContext &context ) const;
1246 
1251  void readCommonStyle( const QDomElement &layerElement, const QgsReadWriteContext &context );
1252 
1253 #ifndef SIP_RUN
1254 #if 0
1255  void connectNotify( const char *signal ) override;
1257 #endif
1258 #endif
1259 
1261  void appendError( const QgsErrorMessage &error ) { mError.append( error );}
1263  void setError( const QgsError &error ) { mError = error;}
1264 
1267 
1269  bool mValid = false;
1270 
1272  QString mDataSource;
1273 
1275  QString mLayerName;
1276 
1277  QString mShortName;
1278  QString mTitle;
1279 
1281  QString mAbstract;
1282  QString mKeywordList;
1283 
1285  QString mDataUrl;
1287 
1289  QString mAttribution;
1291 
1293  QString mMetadataUrl;
1296 
1298  QString mLegendUrl;
1300 
1303 
1305  QSet<QgsMapLayerDependency> mDependencies;
1306 
1308  bool hasDependencyCycle( const QSet<QgsMapLayerDependency> &layers ) const;
1309 
1310  bool mIsRefreshOnNofifyEnabled = false;
1312 
1313  private:
1314 
1315  virtual QString baseURI( PropertyType type ) const;
1316  QString saveNamedProperty( const QString &uri, QgsMapLayer::PropertyType type, bool &resultFlag );
1317  QString loadNamedProperty( const QString &uri, QgsMapLayer::PropertyType type, bool &resultFlag );
1318  bool loadNamedPropertyFromDatabase( const QString &db, const QString &uri, QString &xml, QgsMapLayer::PropertyType type );
1319 
1324  virtual bool isReadOnly() const;
1325 
1330 
1332  QString mID;
1333 
1335  QgsMapLayer::LayerType mLayerType;
1336 
1338  QPainter::CompositionMode mBlendMode = QPainter::CompositionMode_SourceOver;
1339 
1341  QString mTag;
1342 
1343  //set some generous defaults for scale based visibility
1344 
1346  double mMinScale = 0;
1348  double mMaxScale = 100000000;
1350  bool mScaleBasedVisibility = false;
1351 
1353  QUndoStack *mUndoStack = nullptr;
1354 
1355  QUndoStack *mUndoStackStyles = nullptr;
1356 
1358  QgsObjectCustomProperties mCustomProperties;
1359 
1361  QgsMapLayerLegend *mLegend = nullptr;
1362 
1364  QgsMapLayerStyleManager *mStyleManager = nullptr;
1365 
1367  QTimer *mRefreshTimer = nullptr;
1368 
1369  QgsLayerMetadata mMetadata;
1370 
1372  QgsAbstract3DRenderer *m3DRenderer = nullptr;
1373 
1374 };
1375 
1377 
1378 #ifndef SIP_RUN
1379 
1385 typedef QPointer< QgsMapLayer > QgsWeakMapLayerPointer;
1386 
1392 typedef QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList;
1393 #endif
1394 
1395 #endif
QString attributionUrl() const
Returns the attribution URL of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:318
QString mShortName
Definition: qgsmaplayer.h:1277
void setMetadataUrl(const QString &metaUrl)
Sets the metadata URL of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:329
The class is used as a container of context for various read/write operations on other objects...
QString dataUrlFormat() const
Returns the DataUrl format of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:280
A rectangle specified with double values.
Definition: qgsrectangle.h:40
Base class for all map layer types.
Definition: qgsmaplayer.h:61
Base class for all renderers that may to participate in 3D view.
QString mAttributionUrl
Definition: qgsmaplayer.h:1290
QString mKeywordList
Definition: qgsmaplayer.h:1282
QString shortName() const
Returns the short name of the layer used by QGIS Server to identify the layer.
Definition: qgsmaplayer.h:195
QString mDataUrlFormat
Definition: qgsmaplayer.h:1286
QString dataUrl() const
Returns the DataUrl of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:262
PropertyType
Maplayer has a style and a metadata property.
Definition: qgsmaplayer.h:114
QString mLegendUrlFormat
Definition: qgsmaplayer.h:1299
virtual void reload()
Synchronises with changes in the datasource.
Definition: qgsmaplayer.h:395
void setMetadataUrlType(const QString &metaUrlType)
Set the metadata type of the layer used by QGIS Server in GetCapabilities request MetadataUrlType ind...
Definition: qgsmaplayer.h:347
Abstract base class for spatial data provider implementations.
QPointer< QgsMapLayer > QgsWeakMapLayerPointer
Weak pointer for QgsMapLayer.
Definition: qgsmaplayer.h:1385
Q_DECLARE_METATYPE(QModelIndex)
QString mLayerName
Name of the layer - used for display.
Definition: qgsmaplayer.h:1275
bool isRefreshOnNotifyEnabled() const
Returns true if the refresh on provider nofification is enabled.
Definition: qgsmaplayer.h:999
QgsError mError
Error.
Definition: qgsmaplayer.h:1302
Added in 3.2.
Definition: qgsmaplayer.h:107
QgsRectangle mExtent
Extent of the layer.
Definition: qgsmaplayer.h:1266
QString mMetadataUrl
MetadataUrl of the layer.
Definition: qgsmaplayer.h:1293
void setLegendUrlFormat(const QString &legendUrlFormat)
Sets the format for a URL based layer legend.
Definition: qgsmaplayer.h:832
QString metadataUrlFormat() const
Returns the metadata format of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:374
void setKeywordList(const QString &keywords)
Sets the keyword list of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:234
void setTitle(const QString &title)
Sets the title of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:202
#define SIP_SKIP
Definition: qgis_sip.h:119
LayerType
Types of layers that can be added to a map.
Definition: qgsmaplayer.h:102
QSet< QgsMapLayerDependency > mDependencies
List of layers that may modify this layer on modification.
Definition: qgsmaplayer.h:1305
QString keywordList() const
Returns the keyword list of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:242
QString mDataUrl
DataUrl of the layer.
Definition: qgsmaplayer.h:1285
#define SIP_TRANSFER
Definition: qgis_sip.h:36
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer...
#define SIP_END
Definition: qgis_sip.h:182
QString legendUrl() const
Returns the URL for the layer&#39;s legend.
Definition: qgsmaplayer.h:827
Reads and writes project states.
Definition: qgsproject.h:85
QgsErrorMessage represents single error message.
Definition: qgserror.h:32
#define SIP_FACTORY
Definition: qgis_sip.h:69
void setDataUrlFormat(const QString &dataUrlFormat)
Sets the DataUrl format of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:271
QString mTitle
Definition: qgsmaplayer.h:1278
virtual bool readSld(const QDomNode &node, QString &errorMessage)
Definition: qgsmaplayer.h:763
QString legendUrlFormat() const
Returns the format for a URL based layer legend.
Definition: qgsmaplayer.h:837
QString mMetadataUrlFormat
Definition: qgsmaplayer.h:1295
void setLegendUrl(const QString &legendUrl)
Sets the URL for the layer&#39;s legend.
Definition: qgsmaplayer.h:822
void setMetadataUrlFormat(const QString &metaUrlFormat)
Sets the metadata format of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:365
QString title() const
Returns the title of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:210
QString mAttribution
Attribution of the layer.
Definition: qgsmaplayer.h:1289
QString mAbstract
Description of the layer.
Definition: qgsmaplayer.h:1281
A structured metadata store for a map layer.
QString mRefreshOnNofifyMessage
Definition: qgsmaplayer.h:1311
Contains information about the context of a rendering operation.
QString mDataSource
Data source description string, varies by layer type.
Definition: qgsmaplayer.h:1272
QgsError is container for error messages (report).
Definition: qgserror.h:80
QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList
A list of weak pointers to QgsMapLayers.
Definition: qgsmaplayer.h:1392
#define SIP_OUT
Definition: qgis_sip.h:51
QString mLegendUrl
WMS legend.
Definition: qgsmaplayer.h:1298
This class represents a coordinate reference system (CRS).
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition: qgis_sip.h:165
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
void setAttributionUrl(const QString &attribUrl)
Sets the attribution URL of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:309
void appendError(const QgsErrorMessage &error)
Add error message.
Definition: qgsmaplayer.h:1261
Base class for utility classes that encapsulate information necessary for rendering of map layers...
bool readOnly() const
Returns if this layer is read only.
Definition: qgsmaplayer.h:390
QString metadataUrl() const
Returns the metadata URL of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:338
void setAttribution(const QString &attrib)
Sets the attribution of the layer used by QGIS Server in GetCapabilities request. ...
Definition: qgsmaplayer.h:291
void setRefreshOnNofifyMessage(const QString &message)
Set the notification message that triggers repaine If refresh on notification is enabled, the notification will triggerRepaint only if the notification message is equal to.
Definition: qgsmaplayer.h:1074
Management of styles for use with one map layer.
QString refreshOnNotifyMessage() const
Returns the message that should be notified by the provider to triggerRepaint.
Definition: qgsmaplayer.h:992
void setDataUrl(const QString &dataUrl)
Sets the DataUrl of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:253
QString mMetadataUrlType
Definition: qgsmaplayer.h:1294
void setError(const QgsError &error)
Sets error message.
Definition: qgsmaplayer.h:1263
void setAbstract(const QString &abstract)
Sets the abstract of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:218
QString attribution() const
Returns the attribution of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:300
QString metadataUrlType() const
Returns the metadata type of the layer used by QGIS Server in GetCapabilities request.
Definition: qgsmaplayer.h:356