Class: QgsLayerMetadataFormatter¶
Class for metadata formatter.
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.  | 
- class qgis.core.QgsLayerMetadataFormatter[source]¶
 Bases:
object- __init__(metadata: QgsLayerMetadata)
 Constructor for QgsLayerMetadataFormatter
- Parameters:
 metadata (QgsLayerMetadata)
- __init__(a0: QgsLayerMetadataFormatter)
 - Parameters:
 
- accessSectionHtml(self) str[source]¶
 Formats the “Access” section according to a
metadataobject. This will return a HTML table.- Return type:
 str
- contactsSectionHtml(self) str[source]¶
 Formats the “Contacts” section according to a
metadataobject. This will return a HTML table.- Return type:
 str
- extentSectionHtml(self, showSpatialExtent: bool = True) str[source]¶
 Formats the “Extents” section according to a
metadataobject (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
metadataobject. This will return a HTML table.- Return type:
 str