QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsLayerMetadataFormatter Class Reference

Formats layer metadata into HTML. More...

#include <qgslayermetadataformatter.h>

Public Member Functions

 QgsLayerMetadataFormatter (const QgsLayerMetadata &metadata)
 Constructor for QgsLayerMetadataFormatter.
QString accessSectionHtml () const
 Formats the "Access" section according to a metadata object.
QString contactsSectionHtml () const
 Formats the "Contacts" section according to a metadata object.
QString extentSectionHtml (const bool showSpatialExtent=true) const
 Formats the "Extents" section according to a metadata object (extent and temporal).
QString historySectionHtml () const
 Formats the "History" section according to a metadata object.
QString identificationSectionHtml () const
 Formats the "Identification" section according to a metadata object.
QString linksSectionHtml () const
 Formats the "Links" section according to a metadata object.

Detailed Description

Formats layer metadata into HTML.

Definition at line 32 of file qgslayermetadataformatter.h.

Constructor & Destructor Documentation

◆ QgsLayerMetadataFormatter()

QgsLayerMetadataFormatter::QgsLayerMetadataFormatter ( const QgsLayerMetadata & metadata)

Constructor for QgsLayerMetadataFormatter.

Definition at line 23 of file qgslayermetadataformatter.cpp.

Member Function Documentation

◆ accessSectionHtml()

QString QgsLayerMetadataFormatter::accessSectionHtml ( ) const

Formats the "Access" section according to a metadata object.

This will return a HTML table.

Definition at line 28 of file qgslayermetadataformatter.cpp.

◆ contactsSectionHtml()

QString QgsLayerMetadataFormatter::contactsSectionHtml ( ) const

Formats the "Contacts" section according to a metadata object.

This will return a HTML table.

Definition at line 51 of file qgslayermetadataformatter.cpp.

◆ extentSectionHtml()

QString QgsLayerMetadataFormatter::extentSectionHtml ( const bool showSpatialExtent = true) const

Formats the "Extents" section according to a metadata object (extent and temporal).

This will return a HTML table.

Parameters
showSpatialExtentflag if the spatial extent needs to be displayed. Default to true.

Definition at line 111 of file qgslayermetadataformatter.cpp.

◆ historySectionHtml()

QString QgsLayerMetadataFormatter::historySectionHtml ( ) const

Formats the "History" section according to a metadata object.

This will return a HTML table.

Definition at line 233 of file qgslayermetadataformatter.cpp.

◆ identificationSectionHtml()

QString QgsLayerMetadataFormatter::identificationSectionHtml ( ) const

Formats the "Identification" section according to a metadata object.

This will return a HTML table.

Definition at line 184 of file qgslayermetadataformatter.cpp.

◆ linksSectionHtml()

QString QgsLayerMetadataFormatter::linksSectionHtml ( ) const

Formats the "Links" section according to a metadata object.

This will return a HTML table.

Definition at line 259 of file qgslayermetadataformatter.cpp.


The documentation for this class was generated from the following files: