QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
stac
qgsstacextent.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsstacextent.cpp
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
#include "
qgsstacextent.h
"
17
18
void
QgsStacExtent::setSpatialExtent
(
QgsBox3D
extent )
19
{
20
mSpatialExtent = extent;
21
}
22
23
void
QgsStacExtent::setSpatialExtent
(
QgsRectangle
extent )
24
{
25
setSpatialExtent
( extent.
toBox3d
( 0, 0 ) );
26
}
27
28
void
QgsStacExtent::addDetailedSpatialExtent
(
QgsBox3D
extent )
29
{
30
mDetailedSpatialExtents.append( extent );
31
}
32
33
void
QgsStacExtent::addDetailedSpatialExtent
(
QgsRectangle
extent )
34
{
35
addDetailedSpatialExtent
( extent.
toBox3d
( 0, 0 ) );
36
}
37
38
QgsBox3D
QgsStacExtent::spatialExtent
()
const
39
{
40
return
mSpatialExtent;
41
}
42
43
void
QgsStacExtent::setTemporalExtent
(
QgsDateTimeRange
extent )
44
{
45
mTemporalExtent = extent;
46
}
47
48
void
QgsStacExtent::addDetailedTemporalExtent
(
QgsDateTimeRange
extent )
49
{
50
mDetailedTemporalExtents.append( extent );
51
}
52
53
QgsDateTimeRange
QgsStacExtent::temporalExtent
()
const
54
{
55
return
mTemporalExtent;
56
}
57
58
QVector<QgsBox3D>
QgsStacExtent::detailedSpatialExtents
()
const
59
{
60
return
mDetailedSpatialExtents;
61
}
62
63
QVector<QgsDateTimeRange>
QgsStacExtent::detailedTemporalExtents
()
const
64
{
65
return
mDetailedTemporalExtents;
66
}
67
68
bool
QgsStacExtent::hasDetailedSpatialExtents
()
const
69
{
70
return
!mDetailedSpatialExtents.
isEmpty
();
71
}
72
73
bool
QgsStacExtent::hasDetailedTemporalExtents
()
const
74
{
75
return
!mDetailedTemporalExtents.isEmpty();
76
}
QgsBox3D
A 3-dimensional box composed of x, y, z coordinates.
Definition
qgsbox3d.h:45
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
QgsRectangle::toBox3d
QgsBox3D toBox3d(double zMin, double zMax) const
Converts the rectangle to a 3D box, with the specified zMin and zMax z values.
Definition
qgsrectangle.cpp:179
QgsStacExtent::detailedTemporalExtents
QVector< QgsDateTimeRange > detailedTemporalExtents() const
Returns all detailed temporal sub extents defined.
Definition
qgsstacextent.cpp:63
QgsStacExtent::hasDetailedSpatialExtents
bool hasDetailedSpatialExtents() const
Returns true if there are detailed spatial sub extents defined.
Definition
qgsstacextent.cpp:68
QgsStacExtent::addDetailedSpatialExtent
void addDetailedSpatialExtent(QgsBox3D extent)
Adds a more detailed spatial extent.
Definition
qgsstacextent.cpp:28
QgsStacExtent::hasDetailedTemporalExtents
bool hasDetailedTemporalExtents() const
Returns true if there are detailed temporal sub extents defined.
Definition
qgsstacextent.cpp:73
QgsStacExtent::addDetailedTemporalExtent
void addDetailedTemporalExtent(QgsDateTimeRange extent)
Adds a more detailed temporal extent.
Definition
qgsstacextent.cpp:48
QgsStacExtent::temporalExtent
QgsDateTimeRange temporalExtent() const
Returns the overall temporal extent.
Definition
qgsstacextent.cpp:53
QgsStacExtent::spatialExtent
QgsBox3D spatialExtent() const
Returns the overall spatial extent.
Definition
qgsstacextent.cpp:38
QgsStacExtent::setSpatialExtent
void setSpatialExtent(QgsBox3D extent)
Sets the overall spatial extent to extent.
Definition
qgsstacextent.cpp:18
QgsStacExtent::setTemporalExtent
void setTemporalExtent(QgsDateTimeRange extent)
Sets the overall temporal extent to extent.
Definition
qgsstacextent.cpp:43
QgsStacExtent::detailedSpatialExtents
QVector< QgsBox3D > detailedSpatialExtents() const
Returns all detailed spatial sub extents defined.
Definition
qgsstacextent.cpp:58
QgsTemporalRange::isEmpty
bool isEmpty() const
Returns true if the range is empty, ie the beginning equals (or exceeds) the end and either of the bo...
Definition
qgsrange.h:451
QgsDateTimeRange
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition
qgsrange.h:764
qgsstacextent.h
Generated on
for QGIS API Documentation by
1.17.0