Class: QgsLayerMetadataProviderResult

Result record of layer metadata provider search.

The result contains QGIS metadata information and all information that is required by QGIS to load the layer and to filter the results.

The class extends QgsLayerMetadata by adding information taken directly from the provider which is required for filtering (geographic extent) or because the actual values may be different by those stored in the metadata (CRS authid) or totally missing from the metadata (data provider name and layer type).

Added in version 3.28.

Class Hierarchy

Inheritance diagram of qgis.core.QgsLayerMetadataProviderResult

Base classes

QgsLayerMetadata

A structured metadata store for a map layer.

QgsAbstractMetadataBase

An abstract base class for metadata stores.

Methods

authid

Returns the layer CRS authid.

dataProviderName

Returns the data provider name.

geographicExtent

Returns the layer extent in EPSG:4326

geometryType

Returns the layer geometry type.

layerType

Returns the layer type.

setAuthid

Sets the layer authid.

setDataProviderName

Sets the data provider name to dataProviderName.

setGeographicExtent

Sets the layer extent in EPSG:4326 to geographicExtent

setGeometryType

Sets the layer geometry type to geometryType.

setLayerType

Sets the layer type to layerType.

setStandardUri

Sets the metadata standard URI to standardUri.

setUri

Sets the layer data source URI to Uri.

standardUri

Returns the metadata standard URI (usually "http://mrcc.com/qgis.dtd")

uri

Returns the layer data source URI.

class qgis.core.QgsLayerMetadataProviderResult[source]

Bases: QgsLayerMetadata

__init__(metadata: QgsLayerMetadata)

Constructor for QgsLayerMetadataProviderResult.

Parameters:

metadata (QgsLayerMetadata) – layer metadata.

__init__()
__init__(a0: QgsLayerMetadataProviderResult)
Parameters:

a0 (QgsLayerMetadataProviderResult)

authid(self) str

Returns the layer CRS authid.

Return type:

str

dataProviderName(self) str

Returns the data provider name.

Return type:

str

geographicExtent(self) QgsPolygon

Returns the layer extent in EPSG:4326

Return type:

QgsPolygon

geometryType(self) Qgis.GeometryType[source]

Returns the layer geometry type.

Return type:

Qgis.GeometryType

layerType(self) Qgis.LayerType[source]

Returns the layer type.

Return type:

Qgis.LayerType

setAuthid(self, authid: str | None)[source]

Sets the layer authid.

Parameters:

authid (Optional[str])

setDataProviderName(self, dataProviderName: str | None)[source]

Sets the data provider name to dataProviderName.

Parameters:

dataProviderName (Optional[str])

setGeographicExtent(self, geographicExtent: QgsPolygon)[source]

Sets the layer extent in EPSG:4326 to geographicExtent

Parameters:

geographicExtent (QgsPolygon)

setGeometryType(self, geometryType: Qgis.GeometryType)[source]

Sets the layer geometry type to geometryType.

Parameters:

geometryType (Qgis.GeometryType)

setLayerType(self, layerType: Qgis.LayerType)[source]

Sets the layer type to layerType.

Parameters:

layerType (Qgis.LayerType)

setStandardUri(self, standardUri: str | None)[source]

Sets the metadata standard URI to standardUri.

Parameters:

standardUri (Optional[str])

setUri(self, Uri: str | None)[source]

Sets the layer data source URI to Uri.

Parameters:

Uri (Optional[str])

standardUri(self) str

Returns the metadata standard URI (usually “http://mrcc.com/qgis.dtd”)

Return type:

str

uri(self) str

Returns the layer data source URI.

Return type:

str