QGIS API Documentation
3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
src
core
metadata
qgsabstractlayermetadataprovider.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstractlayermetadataprovider.cpp - QgsAbstractLayerMetadataProvider
3
4
---------------------
5
begin : 17.8.2022
6
copyright : (C) 2022 by Alessandro Pasotti
7
email : elpaso at itopen dot it
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#include "
qgsabstractlayermetadataprovider.h
"
17
#include "
qgsprovidermetadata.h
"
18
#include "
qgsproviderregistry.h
"
19
#include "
qgsfeedback.h
"
20
21
QList<QgsLayerMetadataProviderResult>
QgsLayerMetadataSearchResults::metadata
()
const
22
{
23
return
mMetadata;
24
}
25
26
void
QgsLayerMetadataSearchResults::addMetadata
(
const
QgsLayerMetadataProviderResult
&metadata )
27
{
28
mMetadata.push_back(
metadata
);
29
}
30
31
32
QStringList
QgsLayerMetadataSearchResults::errors
()
const
33
{
34
return
mErrors;
35
}
36
37
void
QgsLayerMetadataSearchResults::addError
(
const
QString &error )
38
{
39
mErrors.push_back( error );
40
}
41
42
43
QgsLayerMetadataProviderResult::QgsLayerMetadataProviderResult
(
const
QgsLayerMetadata
&metadata )
44
:
QgsLayerMetadata
( metadata )
45
{
46
47
}
48
49
const
QgsPolygon
&
QgsLayerMetadataProviderResult::geographicExtent
()
const
50
{
51
return
mGeographicExtent;
52
}
53
54
void
QgsLayerMetadataProviderResult::setGeographicExtent
(
const
QgsPolygon
&geographicExtent )
55
{
56
mGeographicExtent =
geographicExtent
;
57
}
58
59
Qgis::GeometryType
QgsLayerMetadataProviderResult::geometryType
()
const
60
{
61
return
mGeometryType;
62
}
63
64
void
QgsLayerMetadataProviderResult::setGeometryType
(
Qgis::GeometryType
geometryType )
65
{
66
mGeometryType =
geometryType
;
67
}
68
69
const
QString &
QgsLayerMetadataProviderResult::authid
()
const
70
{
71
return
mAuthid;
72
}
73
74
void
QgsLayerMetadataProviderResult::setAuthid
(
const
QString &authid )
75
{
76
mAuthid =
authid
;
77
}
78
79
const
QString &
QgsLayerMetadataProviderResult::uri
()
const
80
{
81
return
mUri;
82
}
83
84
void
QgsLayerMetadataProviderResult::setUri
(
const
QString &newUri )
85
{
86
mUri = newUri;
87
}
88
89
const
QString &
QgsLayerMetadataProviderResult::dataProviderName
()
const
90
{
91
return
mDataProviderName;
92
}
93
94
void
QgsLayerMetadataProviderResult::setDataProviderName
(
const
QString &dataProviderName )
95
{
96
mDataProviderName =
dataProviderName
;
97
}
98
99
Qgis::LayerType
QgsLayerMetadataProviderResult::layerType
()
const
100
{
101
return
mLayerType;
102
}
103
104
void
QgsLayerMetadataProviderResult::setLayerType
(
Qgis::LayerType
layerType )
105
{
106
mLayerType =
layerType
;
107
}
108
109
const
QString &
QgsLayerMetadataProviderResult::standardUri
()
const
110
{
111
return
mStandardUri;
112
}
113
114
void
QgsLayerMetadataProviderResult::setStandardUri
(
const
QString &standardUri )
115
{
116
mStandardUri =
standardUri
;
117
}
118
119
Qgis::GeometryType
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition
qgis.h:337
Qgis::LayerType
LayerType
Types of layers that can be added to a map.
Definition
qgis.h:169
QgsLayerMetadataProviderResult
Result record of layer metadata provider search.
Definition
qgsabstractlayermetadataprovider.h:60
QgsLayerMetadataProviderResult::geometryType
Qgis::GeometryType geometryType() const
Returns the layer geometry type.
Definition
qgsabstractlayermetadataprovider.cpp:59
QgsLayerMetadataProviderResult::geographicExtent
const QgsPolygon & geographicExtent() const
Returns the layer extent in EPSG:4326.
Definition
qgsabstractlayermetadataprovider.cpp:49
QgsLayerMetadataProviderResult::standardUri
const QString & standardUri() const
Returns the metadata standard URI (usually "http://mrcc.com/qgis.dtd")
Definition
qgsabstractlayermetadataprovider.cpp:109
QgsLayerMetadataProviderResult::setDataProviderName
void setDataProviderName(const QString &dataProviderName)
Sets the data provider name to dataProviderName.
Definition
qgsabstractlayermetadataprovider.cpp:94
QgsLayerMetadataProviderResult::setGeographicExtent
void setGeographicExtent(const QgsPolygon &geographicExtent)
Sets the layer extent in EPSG:4326 to geographicExtent.
Definition
qgsabstractlayermetadataprovider.cpp:54
QgsLayerMetadataProviderResult::setGeometryType
void setGeometryType(Qgis::GeometryType geometryType)
Sets the layer geometry type to geometryType.
Definition
qgsabstractlayermetadataprovider.cpp:64
QgsLayerMetadataProviderResult::setLayerType
void setLayerType(Qgis::LayerType layerType)
Sets the layer type to layerType.
Definition
qgsabstractlayermetadataprovider.cpp:104
QgsLayerMetadataProviderResult::dataProviderName
const QString & dataProviderName() const
Returns the data provider name.
Definition
qgsabstractlayermetadataprovider.cpp:89
QgsLayerMetadataProviderResult::QgsLayerMetadataProviderResult
QgsLayerMetadataProviderResult()=default
QgsLayerMetadataProviderResult::setAuthid
void setAuthid(const QString &authid)
Sets the layer authid.
Definition
qgsabstractlayermetadataprovider.cpp:74
QgsLayerMetadataProviderResult::setUri
void setUri(const QString &Uri)
Sets the layer data source URI to Uri.
Definition
qgsabstractlayermetadataprovider.cpp:84
QgsLayerMetadataProviderResult::uri
const QString & uri() const
Returns the layer data source URI.
Definition
qgsabstractlayermetadataprovider.cpp:79
QgsLayerMetadataProviderResult::setStandardUri
void setStandardUri(const QString &standardUri)
Sets the metadata standard URI to standardUri.
Definition
qgsabstractlayermetadataprovider.cpp:114
QgsLayerMetadataProviderResult::authid
const QString & authid() const
Returns the layer CRS authid.
Definition
qgsabstractlayermetadataprovider.cpp:69
QgsLayerMetadataProviderResult::layerType
Qgis::LayerType layerType() const
Returns the layer type.
Definition
qgsabstractlayermetadataprovider.cpp:99
QgsLayerMetadataSearchResults::addError
void addError(const QString &error)
Adds a error to the list of errors.
Definition
qgsabstractlayermetadataprovider.cpp:37
QgsLayerMetadataSearchResults::addMetadata
void addMetadata(const QgsLayerMetadataProviderResult &metadata)
Adds a Metadata record to the list of results.
Definition
qgsabstractlayermetadataprovider.cpp:26
QgsLayerMetadataSearchResults::errors
QStringList errors() const
Returns the list of errors occurred during a metadata search.
Definition
qgsabstractlayermetadataprovider.cpp:32
QgsLayerMetadataSearchResults::metadata
QList< QgsLayerMetadataProviderResult > metadata() const
Returns the list of metadata results.
Definition
qgsabstractlayermetadataprovider.cpp:21
QgsLayerMetadata
A structured metadata store for a map layer.
Definition
qgslayermetadata.h:56
QgsPolygon
Polygon geometry type.
Definition
qgspolygon.h:33
qgsabstractlayermetadataprovider.h
qgsfeedback.h
qgsprovidermetadata.h
qgsproviderregistry.h
Generated on Sun Dec 15 2024 01:32:01 for QGIS API Documentation by
1.9.8