QgsLayerMetadata::Extent struct

Metadata extent structure.

Contents

Public functions

void setSpatialExtents(const QList<QgsLayerMetadata::SpatialExtent>& extents)
Sets the spatial extents of the resource.
void setTemporalExtents(const QList<QgsDateTimeRange>& extents)
Sets the temporal extents of the resource.
auto spatialExtents() const -> QList<QgsLayerMetadata::SpatialExtent>
Spatial extents of the resource.
auto temporalExtents() const -> QList<QgsDateTimeRange>
Temporal extents of the resource.

Function documentation

void QgsLayerMetadata::Extent::setSpatialExtents(const QList<QgsLayerMetadata::SpatialExtent>& extents)

Sets the spatial extents of the resource.

void QgsLayerMetadata::Extent::setTemporalExtents(const QList<QgsDateTimeRange>& extents)

Sets the temporal extents of the resource.

QList<QgsLayerMetadata::SpatialExtent> QgsLayerMetadata::Extent::spatialExtents() const

Spatial extents of the resource.

QList<QgsDateTimeRange> QgsLayerMetadata::Extent::temporalExtents() const

Temporal extents of the resource.

Use QgsDateTimeRange::isInstant() to determine whether the temporal extent is a range or a single point in time. If QgsDateTimeRange::isInfinite() returns true then the temporal extent is considered to be indeterminate and continuous.