QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
stac
qgsstacitemcollection.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsstacitemcollection.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 QGSSTACITEMCOLLECTION_H
17
#define QGSSTACITEMCOLLECTION_H
18
19
#include "qgis_core.h"
20
#include "
qgsstaclink.h
"
21
22
#include <QMap>
23
#include <QUrl>
24
25
class
QgsStacItem
;
26
36
class
CORE_EXPORT
QgsStacItemCollection
37
{
38
public
:
40
QgsStacItemCollection
() =
delete
;
41
49
QgsStacItemCollection
(
const
QVector< QgsStacItem * > &
items
,
const
QVector< QgsStacLink > &links,
int
numberMatched
= -1 );
50
52
~QgsStacItemCollection
();
53
58
QVector< QgsStacItem * >
items
()
const
;
59
64
QVector< QgsStacItem * >
takeItems
();
65
69
QUrl
url
()
const
;
70
74
QUrl
rootUrl
()
const
;
75
79
QUrl
parentUrl
()
const
;
80
84
QUrl
collectionUrl
()
const
;
85
89
QUrl
nextUrl
()
const
;
90
92
int
numberReturned
()
const
;
93
98
int
numberMatched
()
const
;
99
100
private
:
101
#ifdef SIP_RUN
102
QgsStacItemCollection
(
const
QgsStacItemCollection
&rh )
SIP_FORCE
;
103
#endif
104
105
QVector< QgsStacItem * > mItems;
106
const
QVector< QgsStacLink > mLinks;
107
QMap< QString, QString > mUrls;
108
int
mNumberMatched = -1;
109
};
110
111
#endif
// QGSSTACITEMCOLLECTION_H
QgsStacItemCollection::numberReturned
int numberReturned() const
Returns the number of items in the collection.
Definition
qgsstacitemcollection.cpp:78
QgsStacItemCollection::parentUrl
QUrl parentUrl() const
Returns the url of the item collection's "parent" link.
Definition
qgsstacitemcollection.cpp:63
QgsStacItemCollection::items
QVector< QgsStacItem * > items() const
Returns the items in the collection Ownership is not transferred.
Definition
qgsstacitemcollection.cpp:41
QgsStacItemCollection::nextUrl
QUrl nextUrl() const
Returns the url of the item collection's "next" link.
Definition
qgsstacitemcollection.cpp:73
QgsStacItemCollection::numberMatched
int numberMatched() const
Returns the total number of items in the parent collection If this information was not available by t...
Definition
qgsstacitemcollection.cpp:83
QgsStacItemCollection::QgsStacItemCollection
QgsStacItemCollection()=delete
Default constructor deleted, use the variant with required parameters.
QgsStacItemCollection::rootUrl
QUrl rootUrl() const
Returns the url of the item collection's "root" link.
Definition
qgsstacitemcollection.cpp:58
QgsStacItemCollection::url
QUrl url() const
Returns the url of the item collection's "self" link.
Definition
qgsstacitemcollection.cpp:53
QgsStacItemCollection::takeItems
QVector< QgsStacItem * > takeItems()
Returns the items in the collection Caller takes ownership of the returned items.
Definition
qgsstacitemcollection.cpp:46
QgsStacItemCollection::collectionUrl
QUrl collectionUrl() const
Returns the url of the item collection's "collection" link.
Definition
qgsstacitemcollection.cpp:68
QgsStacItem
Stores data associated with a STAC Item.
Definition
qgsstacitem.h:35
SIP_FORCE
#define SIP_FORCE
Definition
qgis_sip.h:143
qgsstaclink.h
Generated on
for QGIS API Documentation by
1.17.0