Class: QgsLayerMetadataFormatter

Formats layer metadata into HTML.

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.

class qgis.core.QgsLayerMetadataFormatter[source]

Bases: object

__init__(metadata: QgsLayerMetadata)

Constructor for QgsLayerMetadataFormatter

Parameters:

metadata (QgsLayerMetadata)

__init__(a0: QgsLayerMetadataFormatter)
Parameters:

a0 (QgsLayerMetadataFormatter)

accessSectionHtml(self) str[source]

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

Return type:

str

contactsSectionHtml(self) str[source]

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

Return type:

str

extentSectionHtml(self, showSpatialExtent: bool = True) str[source]

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[source]

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

Return type:

str

identificationSectionHtml(self) str[source]

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

Return type:

str

linksSectionHtml(self) str[source]

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

Return type:

str