Class: QgsLayerMetadataFormatter

class qgis.core.QgsLayerMetadataFormatter

Bases: sip.wrapper

Class for metadata formatter.

New in version 3.0.

QgsLayerMetadataFormatter(metadata: QgsLayerMetadata) Constructor for QgsLayerMetadataFormatter

QgsLayerMetadataFormatter(QgsLayerMetadataFormatter)

Methods

accessSectionHtml

Formats the “Access” section according to a metadata object.

contactsSectionHtml

Formats the “Contacts” section according to a metadata object.

extentSectionHtml

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

historySectionHtml

Formats the “History” section according to a metadata object.

identificationSectionHtml

Formats the “Identification” section according to a metadata object.

linksSectionHtml

Formats the “Links” section according to a metadata object.

accessSectionHtml(self)str

Formats the “Access” section according to a metadata object. This will return a HTML table.

Return type

str

contactsSectionHtml(self)str

Formats the “Contacts” section according to a metadata object. This will return a HTML table.

Return type

str

extentSectionHtml(self, showSpatialExtent: bool = True)str

Formats the “Extents” section according to a metadata object (extent and temporal). This will return a HTML table.

Parameters

showSpatialExtent (bool = True) – flag if the spatial extent needs to be displayed. Default to True.

Return type

str

historySectionHtml(self)str

Formats the “History” section according to a metadata object. This will return a HTML table.

Return type

str

identificationSectionHtml(self)str

Formats the “Identification” section according to a metadata object. This will return a HTML table.

Return type

str

linksSectionHtml(self)str

Formats the “Links” section according to a metadata object. This will return a HTML table.

Return type

str