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: Enums
Methods
Formats the “Access” section according to a
metadata
object.Formats the “Contacts” section according to a
metadata
object.Formats the “Extents” section according to a
metadata
object (extent and temporal).Formats the “History” section according to a
metadata
object.Formats the “Identification” section according to a
metadata
object.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.
-