22using namespace Qt::StringLiterals;
31 if ( link.relation() ==
"self"_L1 || link.relation() ==
"root"_L1 || link.relation() ==
"parent"_L1 || link.relation() ==
"collection"_L1 || link.relation() ==
"next"_L1 )
32 mUrls.insert( link.relation(), link.href() );
48 QVector< QgsStacItem * >
items = mItems;
55 return QUrl( mUrls.value( u
"self"_s, QString() ) );
60 return QUrl( mUrls.value( u
"root"_s, QString() ) );
65 return QUrl( mUrls.value( u
"parent"_s, QString() ) );
70 return QUrl( mUrls.value( u
"collection"_s, QString() ) );
75 return QUrl( mUrls.value( u
"next"_s, QString() ) );
85 return mNumberMatched;
int numberReturned() const
Returns the number of items in the collection.
QUrl parentUrl() const
Returns the url of the item collection's "parent" link.
~QgsStacItemCollection()
Destructor.
QVector< QgsStacItem * > items() const
Returns the items in the collection Ownership is not transferred.
QUrl nextUrl() const
Returns the url of the item collection's "next" link.
int numberMatched() const
Returns the total number of items in the parent collection If this information was not available by t...
QgsStacItemCollection()=delete
Default constructor deleted, use the variant with required parameters.
QUrl rootUrl() const
Returns the url of the item collection's "root" link.
QUrl url() const
Returns the url of the item collection's "self" link.
QVector< QgsStacItem * > takeItems()
Returns the items in the collection Caller takes ownership of the returned items.
QUrl collectionUrl() const
Returns the url of the item collection's "collection" link.
Stores data associated with a STAC link.