QgsLayerMetadataFormatter class

Class for metadata formatter.

Constructors, destructors, conversion operators

QgsLayerMetadataFormatter(const QgsLayerMetadata& metadata)
Constructor for QgsLayerMetadataFormatter.

Public functions

auto accessSectionHtml() const -> QString
Formats the "Access" section according to a metadata object.
auto contactsSectionHtml() const -> QString
Formats the "Contacts" section according to a metadata object.
auto extentSectionHtml(const bool showSpatialExtent = true) const -> QString
Formats the "Extents" section according to a metadata object (extent and temporal).
auto historySectionHtml() const -> QString
Formats the "History" section according to a metadata object.
auto identificationSectionHtml() const -> QString
Formats the "Identification" section according to a metadata object.
auto linksSectionHtml() const -> QString
Formats the "Links" section according to a metadata object.

Function documentation

QString QgsLayerMetadataFormatter::accessSectionHtml() const

Formats the "Access" section according to a metadata object.

This will return a HTML table.

QString QgsLayerMetadataFormatter::contactsSectionHtml() const

Formats the "Contacts" section according to a metadata object.

This will return a HTML table.

QString QgsLayerMetadataFormatter::extentSectionHtml(const bool showSpatialExtent = true) const

Formats the "Extents" section according to a metadata object (extent and temporal).

Parameters
showSpatialExtent flag if the spatial extent needs to be displayed. Default to true.

This will return a HTML table.

QString QgsLayerMetadataFormatter::historySectionHtml() const

Formats the "History" section according to a metadata object.

This will return a HTML table.

QString QgsLayerMetadataFormatter::identificationSectionHtml() const

Formats the "Identification" section according to a metadata object.

This will return a HTML table.

QString QgsLayerMetadataFormatter::linksSectionHtml() const

Formats the "Links" section according to a metadata object.

This will return a HTML table.