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¶
Base classes¶
A structured metadata store for a map layer. |
|
An abstract base class for metadata stores. |
Methods
Returns the layer CRS authid. |
|
Returns the data provider name. |
|
Returns the layer extent in EPSG:4326 |
|
Returns the layer geometry type. |
|
Returns the layer type. |
|
Sets the layer authid. |
|
Sets the data provider name to dataProviderName. |
|
Sets the layer extent in EPSG:4326 to geographicExtent |
|
Sets the layer geometry type to geometryType. |
|
Sets the layer type to layerType. |
|
Sets the metadata standard URI to standardUri. |
|
Sets the layer data source URI to Uri. |
|
Returns the metadata standard URI (usually "http://mrcc.com/qgis.dtd") |
|
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:
- 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:
- geometryType(self) Qgis.GeometryType [source]¶
Returns the layer geometry type.
- Return type:
- layerType(self) Qgis.LayerType [source]¶
Returns the layer type.
- Return type:
- 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