QGIS API Documentation 3.99.0-Master (d270888f95f)
Loading...
Searching...
No Matches
qgsrasterlayerutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrasterlayerutils.h
3 -------------------------
4 begin : March 2024
5 copyright : (C) 2024 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSRASTERLAYERUTILS_H
19#define QGSRASTERLAYERUTILS_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23#include "qgsrange.h"
24
25class QgsRasterLayer;
28class QgsRectangle;
29
37class CORE_EXPORT QgsRasterLayerUtils
38{
39 public:
40
54 QgsRasterLayer *layer,
55 const QgsDateTimeRange &temporalRange,
56 const QgsDoubleRange &elevationRange,
57 bool &matched SIP_OUT );
58
65 static void computeMinMax( QgsRasterDataProvider *provider,
66 int band,
67 const QgsRasterMinMaxOrigin &mmo,
69 const QgsRectangle &extent,
70 int sampleSize,
71 double &min SIP_OUT,
72 double &max SIP_OUT );
73
74};
75
76#endif //QGSRASTERLAYERUTILS_H
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
Definition qgis.h:1602
QgsRange which stores a range of double values.
Definition qgsrange.h:236
Base class for raster data providers.
Contains utility functions for working with raster layers.
static void computeMinMax(QgsRasterDataProvider *provider, int band, const QgsRasterMinMaxOrigin &mmo, Qgis::RasterRangeLimit limits, const QgsRectangle &extent, int sampleSize, double &min, double &max)
Compute the min max values for provider along band according to MinMaxOrigin parameters mmo and exten...
static int renderedBandForElevationAndTemporalRange(QgsRasterLayer *layer, const QgsDateTimeRange &temporalRange, const QgsDoubleRange &elevationRange, bool &matched)
Given a raster layer, returns the band which should be used for rendering the layer for a specified t...
Represents a raster layer.
Describes the origin of minimum and maximum values in a raster.
A rectangle specified with double values.
#define SIP_OUT
Definition qgis_sip.h:58
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition qgsrange.h:764