18 #ifndef QGSLAYERMETADATA_H 19 #define QGSLAYERMETADATA_H 22 #include "qgis_core.h" 102 QList< QgsLayerMetadata::SpatialExtent > spatialExtents()
const;
108 void setSpatialExtents(
const QList< QgsLayerMetadata::SpatialExtent > &extents );
117 QList< QgsDateTimeRange > temporalExtents()
const;
123 void setTemporalExtents(
const QList< QgsDateTimeRange > &extents );
130 QList< QgsLayerMetadata::SpatialExtent > mSpatialExtents;
131 QList< QgsDateTimeRange > mTemporalExtents;
146 Constraint(
const QString &constraint = QString(),
const QString &type = QString() )
148 , constraint( constraint )
181 Address(
const QString &type = QString(),
const QString &address = QString(),
const QString &city = QString(),
const QString &administrativeArea = QString(),
const QString &postalCode = QString(),
const QString &country = QString() )
185 , administrativeArea( administrativeArea )
186 , postalCode( postalCode )
297 Link(
const QString &name = QString(),
const QString &type = QString(),
const QString &url = QString() )
358 QString identifier()
const;
364 void setIdentifier(
const QString &identifier );
371 QString parentIdentifier()
const;
378 void setParentIdentifier(
const QString &parentIdentifier );
387 QString language()
const;
395 void setLanguage(
const QString &language );
402 QString type()
const;
409 void setType(
const QString &type );
415 QString title()
const;
421 void setTitle(
const QString &title );
427 QString
abstract()
const;
433 void setAbstract(
const QString &
abstract );
440 QString fees()
const;
447 void setFees(
const QString &fees );
472 QStringList rights()
const;
478 void setRights(
const QStringList &rights );
484 QStringList licenses()
const;
491 void setLicenses(
const QStringList &licenses );
497 QStringList history()
const;
505 void setHistory(
const QStringList &history );
512 void addHistoryItem(
const QString &text );
518 QString encoding()
const;
524 void setEncoding(
const QString &encoding );
597 KeywordMap keywords()
const;
611 void setKeywords(
const KeywordMap &keywords );
623 void addKeywords(
const QString &vocabulary,
const QStringList &keywords );
631 bool removeKeywords(
const QString &vocabulary );
641 QStringList keywordVocabularies()
const;
653 QStringList keywords(
const QString &vocabulary )
const;
661 QStringList categories()
const;
669 void setCategories(
const QStringList &categories );
731 bool readMetadataXml(
const QDomElement &metadataElement );
740 bool writeMetadataXml( QDomElement &metadataElement, QDomDocument &document )
const;
755 QString mParentIdentifier;
761 ConstraintList mConstraints;
763 QStringList mLicenses;
764 QStringList mHistory;
776 KeywordMap mKeywords;
778 ContactList mContacts;
798 #endif // QGSLAYERMETADATA_H Base class for all map layer types.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
A 3-dimensional box composed of x, y, z coordinates.
Q_DECLARE_METATYPE(QModelIndex)
This class represents a coordinate reference system (CRS).