Class: QgsLayerMetadataFormatter¶
- class qgis.core.QgsLayerMetadataFormatter¶
Bases:
sip.wrapper
Class for metadata formatter.
New in version 3.0.
QgsLayerMetadataFormatter(metadata:
QgsLayerMetadata
) Constructor for QgsLayerMetadataFormatterQgsLayerMetadataFormatter(
QgsLayerMetadataFormatter
)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.- 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