Class: QgsStacExtent

Class for storing a STAC SpatioTemporal extent.

QgsStacExtent contains one overall spatial extent and one overall temporal extent It is possible to add further refined sub extents to better describe clustered data.

All spatial extents are in WGS84 longitude/latitude and elevation in meters.

Added in version 3.40.

Methods

addDetailedSpatialExtent

Adds a more detailed spatial extent

addDetailedTemporalExtent

Adds a more detailed temporal extent

detailedSpatialExtents

Returns all detailed spatial sub extents defined

detailedTemporalExtents

Returns all detailed temporal sub extents defined

hasDetailedSpatialExtents

Returns True if there are detailed spatial sub extents defined

hasDetailedTemporalExtents

Returns True if there are detailed temporal sub extents defined

setSpatialExtent

Sets the overall spatial extent to extent

setTemporalExtent

Sets the overall temporal extent to extent

spatialExtent

Returns the overall spatial extent

temporalExtent

Returns the overall temporal extent

class qgis.core.QgsStacExtent[source]

Bases: object

__init__()

Default constructor for empty extent

__init__(a0: QgsStacExtent)
Parameters:

a0 (QgsStacExtent)

addDetailedSpatialExtent(self, extent: QgsBox3D)[source]

Adds a more detailed spatial extent

Parameters:

extent (QgsBox3D)

addDetailedSpatialExtent(self, extent: QgsRectangle)[source]

Adds a more detailed spatial extent

Parameters:

extent (QgsRectangle)

addDetailedTemporalExtent(self, extent: QgsDateTimeRange)[source]

Adds a more detailed temporal extent

Parameters:

extent (QgsDateTimeRange)

detailedSpatialExtents(self) List[QgsBox3D]

Returns all detailed spatial sub extents defined

Return type:

List[QgsBox3D]

detailedTemporalExtents(self) List[QgsDateTimeRange]

Returns all detailed temporal sub extents defined

Return type:

List[QgsDateTimeRange]

hasDetailedSpatialExtents(self) bool[source]

Returns True if there are detailed spatial sub extents defined

Return type:

bool

hasDetailedTemporalExtents(self) bool[source]

Returns True if there are detailed temporal sub extents defined

Return type:

bool

setSpatialExtent(self, extent: QgsBox3D)[source]

Sets the overall spatial extent to extent

Parameters:

extent (QgsBox3D)

setSpatialExtent(self, extent: QgsRectangle)[source]

Sets the overall spatial extent to extent

Parameters:

extent (QgsRectangle)

setTemporalExtent(self, extent: QgsDateTimeRange)[source]

Sets the overall temporal extent to extent

Parameters:

extent (QgsDateTimeRange)

spatialExtent(self) QgsBox3D[source]

Returns the overall spatial extent

Return type:

QgsBox3D

temporalExtent(self) QgsDateTimeRange[source]

Returns the overall temporal extent

Return type:

QgsDateTimeRange