2017-04-10 11:02:20 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/metadata/qgslayermetadata.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
class QgsLayerMetadata
|
|
|
|
{
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
A structured metadata store for a map layer.
|
|
|
|
|
|
|
|
QgsLayerMetadata handles storage and management of the metadata
|
|
|
|
for a QgsMapLayer. This class is an internal QGIS format with a common
|
|
|
|
metadata structure, which allows for code to access the metadata properties for
|
|
|
|
layers in a uniform way.
|
|
|
|
|
|
|
|
The metadata store is designed to be compatible with the Dublin Core metadata
|
|
|
|
specifications, and will be expanded to allow compatibility with ISO specifications
|
|
|
|
in future releases. However, the QGIS internal schema does not represent a superset
|
|
|
|
of all existing metadata schemas and accordingly conversion from specific
|
|
|
|
metadata formats to QgsLayerMetadata may result in a loss of information.
|
|
|
|
|
|
|
|
This class is designed to follow the specifications detailed in
|
|
|
|
the schema definition available at resources/qgis-resource-metadata.xsd
|
|
|
|
within the QGIS source code.
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayermetadata.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
typedef QMap< QString, QStringList > KeywordMap;
|
|
|
|
|
2017-04-11 19:36:04 +10:00
|
|
|
struct Constraint
|
|
|
|
{
|
|
|
|
|
|
|
|
Constraint( const QString &constraint = QString(), const QString &type = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for Constraint.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString type;
|
|
|
|
%Docstring
|
|
|
|
Constraint type. Standard values include 'access' and 'other', however any
|
|
|
|
string can be used for the type.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString constraint;
|
|
|
|
%Docstring
|
|
|
|
Free-form constraint string.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
typedef QList< QgsLayerMetadata::Constraint > ConstraintList;
|
|
|
|
|
|
|
|
|
2017-04-11 19:36:04 +10:00
|
|
|
struct Address
|
|
|
|
{
|
|
|
|
|
|
|
|
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() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for Address.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString type;
|
|
|
|
%Docstring
|
|
|
|
Type of address, e.g. 'postal'.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString address;
|
|
|
|
%Docstring
|
|
|
|
Free-form physical address component, e.g. '221B Baker St' or 'P.O. Box 196'.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString city;
|
|
|
|
%Docstring
|
|
|
|
City or locality name.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString administrativeArea;
|
|
|
|
%Docstring
|
|
|
|
Administrative area (state, provice/territory, etc.).
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString postalCode;
|
|
|
|
%Docstring
|
|
|
|
Postal (or ZIP) code.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString country;
|
|
|
|
%Docstring
|
|
|
|
Free-form country string.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Contact
|
|
|
|
{
|
|
|
|
|
|
|
|
Contact( const QString &name = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for Contact.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString name;
|
|
|
|
%Docstring
|
|
|
|
Name of contact.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString organization;
|
|
|
|
%Docstring
|
|
|
|
Organization contact belongs to/represents.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString position;
|
|
|
|
%Docstring
|
|
|
|
Position/title of contact.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QList< QgsLayerMetadata::Address > addresses;
|
|
|
|
%Docstring
|
|
|
|
List of addresses associated with this contact.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString voice;
|
|
|
|
%Docstring
|
|
|
|
Voice telephone.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString fax;
|
|
|
|
%Docstring
|
|
|
|
Facsimile telephone.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString email;
|
|
|
|
%Docstring
|
|
|
|
Electronic mail address.
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
Do not include mailto: protocol as part of the email address.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString role;
|
|
|
|
%Docstring
|
|
|
|
Role of contact. Acceptable values are those from the ISO 19115 CI_RoleCode specifications
|
|
|
|
(see http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml).
|
|
|
|
E.g. 'custodian', 'owner', 'distributor', etc.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
typedef QList< QgsLayerMetadata::Contact > ContactList;
|
|
|
|
|
|
|
|
|
2017-04-11 19:36:04 +10:00
|
|
|
struct Link
|
|
|
|
{
|
|
|
|
|
|
|
|
Link( const QString &name = QString(), const QString &type = QString(), const QString &url = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for Link.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString name;
|
|
|
|
%Docstring
|
|
|
|
Short link name. E.g. WMS layer name.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString type;
|
|
|
|
%Docstring
|
|
|
|
Link type. It is strongly suggested to use values from the 'identifier'
|
|
|
|
column in https://github.com/OSGeo/Cat-Interop/blob/master/LinkPropertyLookupTable.csv
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString description;
|
|
|
|
%Docstring
|
|
|
|
Abstract text about link.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString url;
|
|
|
|
%Docstring
|
|
|
|
Link url. If the URL is an OWS server, specify the *base* URL only without parameters like service=xxx....
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString format;
|
|
|
|
%Docstring
|
|
|
|
Format specification of online resource. It is strongly suggested to use GDAL/OGR format values.
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString mimeType;
|
|
|
|
%Docstring
|
|
|
|
MIME type representative of the online resource response (image/png, application/json, etc.)
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString size;
|
|
|
|
%Docstring
|
|
|
|
Estimated size (in bytes) of the online resource response.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
typedef QList< QgsLayerMetadata::Link > LinkList;
|
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
QgsLayerMetadata();
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsLayerMetadata.
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
virtual ~QgsLayerMetadata();
|
|
|
|
|
|
|
|
QString identifier() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
A reference, URI, URL or some other mechanism to identify the resource.
|
|
|
|
\see setIdentifier()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setIdentifier( const QString &identifier );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the reference, URI, URL or some other mechanism to identify the resource.
|
|
|
|
\see identifier()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString parentIdentifier() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
A reference, URI, URL or some other mechanism to identify the parent resource that this resource is a part (child) of.
|
2017-04-10 11:02:20 +10:00
|
|
|
Returns an empty string if no parent identifier is set.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see setParentIdentifier()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setParentIdentifier( const QString &parentIdentifier );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Sets a reference, URI, URL or some other mechanism to identify the parent resource that this resource is a part (child) of.
|
|
|
|
Set an empty string if no parent identifier is required.
|
|
|
|
\see parentIdentifier()
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString language() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the human language associated with the resource. Usually the returned string
|
|
|
|
will follow either the ISO 639.2 or ISO 3166 specifications, e.g. 'ENG' or 'SPA', however
|
|
|
|
this is not a hard requirement and the caller must account for non compliant
|
|
|
|
values.
|
|
|
|
\see setLanguage()
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setLanguage( const QString &language );
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the human ``language`` associated with the resource. While a formal vocabulary is not imposed,
|
2017-04-11 19:36:04 +10:00
|
|
|
ideally values should be taken from the ISO 639.2 or ISO 3166 specifications,
|
|
|
|
e.g. 'ENG' or 'SPA' (ISO 639.2) or 'EN-AU' (ISO 3166).
|
|
|
|
\see language()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString type() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns the nature of the resource. While a formal vocabulary is not imposed, it is advised
|
|
|
|
to use the ISO 19115 MD_ScopeCode values. E.g. 'dataset' or 'series'.
|
|
|
|
\see setType()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setType( const QString &type );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the ``type`` (nature) of the resource. While a formal vocabulary is not imposed, it is advised
|
2017-04-11 19:36:04 +10:00
|
|
|
to use the ISO 19115 MD_ScopeCode values. E.g. 'dataset' or 'series'.
|
|
|
|
\see type()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString title() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns the human readable name of the resource, typically displayed in search results.
|
|
|
|
\see setTitle()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setTitle( const QString &title );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the human readable ``title`` (name) of the resource, typically displayed in search results.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see title()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString abstract() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns a free-form description of the resource.
|
|
|
|
\see setAbstract()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setAbstract( const QString &abstract );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets a free-form ``abstract`` (description) of the resource.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see abstract()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString fees() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns any fees associated with using the resource.
|
|
|
|
An empty string will be returned if no fees are set.
|
|
|
|
\see setFees()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setFees( const QString &fees );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the ``fees`` associated with using the resource.
|
2017-04-11 19:36:04 +10:00
|
|
|
Use an empty string if no fees are set.
|
|
|
|
\see fees()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
QgsLayerMetadata::ConstraintList constraints() const;
|
2017-04-10 11:02:20 +10:00
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns a list of constraints associated with using the resource.
|
|
|
|
\see setConstraints()
|
2017-04-12 13:51:36 +10:00
|
|
|
:rtype: QgsLayerMetadata.ConstraintList
|
2017-04-11 19:36:04 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
void setConstraints( const QgsLayerMetadata::ConstraintList &constraints );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the list of ``constraints`` associated with using the resource.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see constraints()
|
2017-04-10 11:02:20 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList rights() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns a list of attribution or copyright strings associated with the resource.
|
|
|
|
\see setRights()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: list of str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setRights( const QStringList &rights );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets a list of ``rights`` (attribution or copyright strings) associated with the resource.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see rights()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
|
|
|
QString encoding() const;
|
|
|
|
%Docstring
|
2017-04-11 19:36:04 +10:00
|
|
|
Returns the character encoding of the data in the resource. An empty string will be returned if no encoding is set.
|
|
|
|
\see setEncoding()
|
2017-04-10 11:02:20 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-04-11 19:36:04 +10:00
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
void setEncoding( const QString &encoding );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the character ``encoding`` of the data in the resource. Use an empty string if no encoding is set.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see encoding()
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsCoordinateReferenceSystem crs() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the coordinate reference system described by the layer's metadata.
|
|
|
|
|
|
|
|
Note that this has no link to QgsMapLayer.crs(). While in most cases these
|
|
|
|
two systems are likely to be identical, it is possible to have a layer
|
|
|
|
with a different CRS described by it's accompanying metadata versus the
|
|
|
|
CRS which is actually used to display and manipulate the layer within QGIS.
|
|
|
|
This may be the case when a layer has an incorrect CRS within its metadata
|
|
|
|
and a user has manually overridden the layer's CRS within QGIS.
|
|
|
|
\see setCrs()
|
|
|
|
:rtype: QgsCoordinateReferenceSystem
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setCrs( const QgsCoordinateReferenceSystem &crs );
|
|
|
|
%Docstring
|
|
|
|
Sets the coordinate reference system for the layer's metadata.
|
|
|
|
|
|
|
|
Note that this has no link to QgsMapLayer.setCrs(). Setting the layer's
|
|
|
|
CRS via QgsMapLayer.setCrs() does not affect the layer's metadata CRS,
|
|
|
|
and changing the CRS from the metadata will not change the layer's
|
|
|
|
CRS or how it is projected within QGIS.
|
|
|
|
|
|
|
|
While ideally these two systems are likely to be identical, it is possible to have a layer
|
|
|
|
with a different CRS described by it's accompanying metadata versus the
|
|
|
|
CRS which is actually used to display and manipulate the layer within QGIS.
|
|
|
|
This may be the case when a layer has an incorrect CRS within its metadata
|
|
|
|
and a user has manually overridden the layer's CRS within QGIS.
|
|
|
|
\see setCrs()
|
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
KeywordMap keywords() const;
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the keywords map, which is a set of descriptive keywords associated with the resource.
|
|
|
|
|
|
|
|
The map key is the vocabulary string and map value is a list of keywords for that vocabulary.
|
|
|
|
|
|
|
|
The vocabulary string is a reference (URI/URL preferred) to a codelist or vocabulary
|
|
|
|
associated with keyword list.
|
|
|
|
|
|
|
|
\see setKeywords()
|
|
|
|
\see keywordVocabularies()
|
2017-04-12 13:51:36 +10:00
|
|
|
:rtype: KeywordMap
|
2017-04-11 19:36:04 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
void setKeywords( const KeywordMap &keywords );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the ``keywords`` map, which is a set of descriptive keywords associated with the resource.
|
2017-04-11 19:36:04 +10:00
|
|
|
|
|
|
|
The map key is the vocabulary string and map value is a list of keywords for that vocabulary.
|
|
|
|
Calling this replaces any existing keyword vocabularies.
|
|
|
|
|
|
|
|
The vocabulary string is a reference (URI/URL preferred) to a codelist or vocabulary
|
|
|
|
associated with keyword list.
|
|
|
|
|
|
|
|
\see keywords()
|
|
|
|
\see addKeywords()
|
|
|
|
%End
|
|
|
|
|
|
|
|
void addKeywords( const QString &vocabulary, const QStringList &keywords );
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Adds a list of descriptive ``keywords`` for a specified ``vocabulary``. Any existing
|
2017-04-11 19:36:04 +10:00
|
|
|
keywords for the same vocabulary will be replaced. Other vocabularies
|
|
|
|
will not be affected.
|
|
|
|
|
|
|
|
The vocabulary string is a reference (URI/URL preferred) to a codelist or vocabulary
|
|
|
|
associated with keyword list.
|
|
|
|
|
|
|
|
\see setKeywords()
|
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList keywordVocabularies() const;
|
|
|
|
%Docstring
|
|
|
|
Returns a list of keyword vocabularies contained in the metadata.
|
|
|
|
|
|
|
|
The vocabulary string is a reference (URI/URL preferred) to a codelist or vocabulary
|
|
|
|
associated with keyword list.
|
|
|
|
|
|
|
|
\see keywords()
|
|
|
|
:rtype: list of str
|
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList keywords( const QString &vocabulary ) const;
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Returns a list of keywords for the specified ``vocabulary``.
|
2017-04-11 19:36:04 +10:00
|
|
|
If the vocabulary is not contained in the metadata, an empty
|
|
|
|
list will be returned.
|
|
|
|
|
|
|
|
The vocabulary string is a reference (URI/URL preferred) to a codelist or vocabulary
|
|
|
|
associated with keyword list.
|
|
|
|
|
|
|
|
\see keywordVocabularies()
|
|
|
|
:rtype: list of str
|
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
QgsLayerMetadata::ContactList contacts() const;
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Returns a list of contact persons or entities associated with the resource.
|
|
|
|
\see setContacts()
|
2017-04-12 13:51:36 +10:00
|
|
|
:rtype: QgsLayerMetadata.ContactList
|
2017-04-11 19:36:04 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
void setContacts( const QgsLayerMetadata::ContactList &contacts );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Sets the list of ``contacts`` or entities associated with the resource. Any existing contacts
|
2017-04-11 19:36:04 +10:00
|
|
|
will be replaced.
|
|
|
|
\see contacts()
|
|
|
|
\see addContact()
|
|
|
|
%End
|
|
|
|
|
|
|
|
void addContact( const QgsLayerMetadata::Contact &contact );
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Adds an individual ``contact`` to the existing contacts.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see contacts()
|
|
|
|
\see setContacts()
|
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
QgsLayerMetadata::LinkList links() const;
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Returns a list of online resources associated with the resource.
|
|
|
|
\see setLinks()
|
2017-04-12 13:51:36 +10:00
|
|
|
:rtype: QgsLayerMetadata.LinkList
|
2017-04-11 19:36:04 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
void setLinks( const QgsLayerMetadata::LinkList &links );
|
2017-04-11 19:36:04 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the list of online resources associated with the resource. Any existing links
|
|
|
|
will be replaced.
|
|
|
|
\see links()
|
|
|
|
\see addLink()
|
|
|
|
%End
|
|
|
|
|
|
|
|
void addLink( const QgsLayerMetadata::Link &link );
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Adds an individual ``link`` to the existing links.
|
2017-04-11 19:36:04 +10:00
|
|
|
\see links()
|
|
|
|
\see setLinks()
|
|
|
|
%End
|
2017-04-10 11:02:20 +10:00
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
void saveToLayer( QgsMapLayer *layer ) const;
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Saves the metadata to a ``layer``'s custom properties (see QgsMapLayer.setCustomProperty() ).
|
2017-04-12 13:51:36 +10:00
|
|
|
\see readFromLayer()
|
|
|
|
%End
|
|
|
|
|
|
|
|
void readFromLayer( const QgsMapLayer *layer );
|
|
|
|
%Docstring
|
2017-04-18 16:10:59 +10:00
|
|
|
Reads the metadata state from a ``layer``'s custom properties (see QgsMapLayer.customProperty() ).
|
2017-04-12 13:51:36 +10:00
|
|
|
\see saveToLayer()
|
|
|
|
%End
|
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
};
|
|
|
|
|
2017-04-12 13:51:36 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-10 11:02:20 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/metadata/qgslayermetadata.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|