Subgroup: Layer

Class: QgsLayerMetadataFormatter

class qgis.core.QgsLayerMetadataFormatter(metadata: QgsLayerMetadata)

Bases: sip.wrapper

Constructor for QgsLayerMetadataFormatter

QgsLayerMetadataFormatter(QgsLayerMetadataFormatter)

Class for metadata formatter.

New in version 3.0: 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.

Signals

Attributes

accessSectionHtml(self) → str

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

contactsSectionHtml(self) → str

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

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 – flag if the spatial extent needs to be displayed. Default to true.
historySectionHtml(self) → str

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

identificationSectionHtml(self) → str

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

linksSectionHtml(self) → str

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