QGIS API Documentation 4.3.0-Master (389d690bb77)
Loading...
Searching...
No Matches
qgsstaccatalog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstaccatalog.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 QGSSTACCATALOG_H
17#define QGSSTACCATALOG_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21#include "qgsstacobject.h"
22
23#include <QSet>
24#include <QStringList>
25
32class CORE_EXPORT QgsStacCatalog : public QgsStacObject
33{
34 public:
36 QgsStacCatalog() = delete;
37
45 QgsStacCatalog( const QString &id, const QString &version, const QString &description, const QVector< QgsStacLink > &links );
46
47 Qgis::StacObjectType type() const override;
48 QString toHtml() const override;
49
51 QString title() const;
52
54 void setTitle( const QString &title );
55
60 QString description() const;
61
66 void setDescription( const QString &description );
67
69 void setConformanceClasses( const QStringList &conformanceClasses );
70
72 void addConformanceClass( const QString &conformanceClass );
73
75 bool conformsTo( const QString &conformanceClass ) const;
76
77 protected:
78 QString mTitle;
79 QString mDescription;
80 QSet< QString > mConformanceClasses;
81};
82
83#endif // QGSSTACCATALOG_H
StacObjectType
Available types of stac objects.
Definition qgis.h:6885
void addConformanceClass(const QString &conformanceClass)
Adds conformanceClass to the list of catalog's conformance classes.
void setTitle(const QString &title)
Sets a short descriptive one-line title for the Catalog.
QString description() const
Returns a Detailed multi-line description to fully explain the Catalog.
QSet< QString > mConformanceClasses
void setConformanceClasses(const QStringList &conformanceClasses)
Sets the list of conformanceClasses this catalog conforms to.
QgsStacCatalog()=delete
Default constructor deleted, use the variant with required parameters.
bool conformsTo(const QString &conformanceClass) const
Checks if the catalog is a STAC API conforming to the specified conformanceClass.
void setDescription(const QString &description)
Sets a detailed multi-line description to fully explain the Catalog.
QString title() const
Returns a short descriptive one-line title for the Catalog.
virtual QString toHtml() const =0
Returns an HTML representation of the STAC object.
QgsStacObject()=delete
Default constructor is used for creating invalid objects.
virtual Qgis::StacObjectType type() const =0
Returns the Type of the STAC object.
QVector< QgsStacLink > links() const
Returns the STAC links included in the object.