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.
- Parameters
metadata –
-
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