20using namespace Qt::StringLiterals;
72 if ( link.relation() ==
"self"_L1 )
82 if ( link.relation() ==
"root"_L1 )
92 if ( link.relation() ==
"parent"_L1 )
Stores data associated with a STAC link.
QString stacVersion() const
Returns the STAC version the object implements.
QString id() const
Id of the STAC object.
QStringList stacExtensions() const
Returns the list of extensions the STAC object implements.
QString parentUrl() const
Returns the url stored in the object's "parent" link.
QString rootUrl() const
Returns the url stored in the object's "root" link.
void setStacExtensions(const QStringList &stacExtensions)
Sets the list of stacExtensions the object implements.
QVector< QgsStacLink > mLinks
QgsStacObject()=delete
Default constructor is used for creating invalid objects.
void setId(const QString &id)
Sets the id for the STAC object.
void setStacVersion(const QString &stacVersion)
Sets the STAC version the object implements.
void setLinks(const QVector< QgsStacLink > &links)
Sets the STAC links included in the object.
QString url() const
Returns the url stored in the object's "self" link.
QStringList mStacExtensions
QVector< QgsStacLink > links() const
Returns the STAC links included in the object.