QGIS API Documentation 4.3.0-Master (389d690bb77)
Loading...
Searching...
No Matches
qgsstaccollection.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstaccollection.h
3 ---------------------
4 begin : August 2024
5 copyright : (C) 2024 by Stefanos Natsis
6 email : uclaros at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSSTACCOLLECTION_H
17#define QGSSTACCOLLECTION_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21#include "qgsstacasset.h"
22#include "qgsstaccatalog.h"
23#include "qgsstacextent.h"
24#include "qgsstacprovider.h"
25
32class CORE_EXPORT QgsStacCollection : public QgsStacCatalog
33{
34 public:
37
47 QgsStacCollection( const QString &id, const QString &version, const QString &description, const QVector< QgsStacLink > &links, const QString &license, const QgsStacExtent &extent );
48
49 Qgis::StacObjectType type() const override;
50 QString toHtml() const override;
51
53 QStringList keywords() const;
54
56 void setKeywords( const QStringList &keywords );
57
59 QString license() const;
60
62 void setLicense( const QString &license );
63
68 QVector<QgsStacProvider> providers() const;
69
74 void setProviders( const QVector<QgsStacProvider> &providers );
75
77 QgsStacExtent extent() const;
78
80 void setExtent( const QgsStacExtent &extent );
81
83 QVariantMap summaries() const;
84
86 void setSummaries( const QVariantMap &summaries );
87
89 QMap<QString, QgsStacAsset> assets() const;
90
92 void setAssets( const QMap<QString, QgsStacAsset> &assets );
93
94 private:
95 QStringList mKeywords;
96 QString mLicense;
97 QVector< QgsStacProvider > mProviders;
98 QgsStacExtent mExtent;
99 QVariantMap mSummaries;
100 QMap< QString, QgsStacAsset > mAssets;
101};
102
103#endif // QGSSTACCOLLECTION_H
StacObjectType
Available types of stac objects.
Definition qgis.h:6885
QString toHtml() const override
Returns an HTML representation of the STAC object.
QString description() const
Returns a Detailed multi-line description to fully explain the Catalog.
Qgis::StacObjectType type() const override
Returns the Type of the STAC object.
QgsStacCatalog()=delete
Default constructor deleted, use the variant with required parameters.
void setSummaries(const QVariantMap &summaries)
Sets the map of property summaries to the collection.
void setExtent(const QgsStacExtent &extent)
Sets the collection's spatial and temporal extent.
QString license() const
Returns the Collection's license(s), either a SPDX License identifier, various if multiple licenses a...
void setKeywords(const QStringList &keywords)
Sets the list of keywords describing the Collection.
QVariantMap summaries() const
Returns a map of property summaries from the collection.
void setLicense(const QString &license)
Sets the Collection's license(s), either a SPDX License identifier, various if multiple licenses appl...
QVector< QgsStacProvider > providers() const
Returns a list of providers, which may include all organizations capturing or processing the data or ...
QgsStacCollection()=delete
Default constructor deleted, use the variant with required parameters.
void setProviders(const QVector< QgsStacProvider > &providers)
Sets a list of providers, which may include all organizations capturing or processing the data or the...
QgsStacExtent extent() const
Returns the collection's spatial and temporal extent.
QStringList keywords() const
Returns the list of keywords describing the Collection.
QMap< QString, QgsStacAsset > assets() const
Returns a dictionary of asset objects in the catalog, each with a unique id key.
void setAssets(const QMap< QString, QgsStacAsset > &assets)
Sets the asset objects in the catalog, each with a unique id key.
Stores a STAC SpatioTemporal extent.
QVector< QgsStacLink > links() const
Returns the STAC links included in the object.