QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Contains utility methods for working with elevation from layers and projects. More...
#include <qgselevationutils.h>
Static Public Member Functions | |
static QgsDoubleRange | calculateZRangeForProject (QgsProject *project) |
Calculates the elevation range for a project. | |
static bool | canEnableElevationForLayer (QgsMapLayer *layer) |
Returns true if elevation can be enabled for a map layer. | |
static bool | enableElevationForLayer (QgsMapLayer *layer) |
Automatically enables elevation for a map layer, using reasonable defaults. | |
static QList< double > | significantZValuesForLayers (const QList< QgsMapLayer * > &layers) |
Returns a list of significant elevation/z-values for the specified layers. | |
static QList< double > | significantZValuesForProject (QgsProject *project) |
Returns a list of significant elevation/z-values for the specified project, using the values from layers contained by the project. | |
Contains utility methods for working with elevation from layers and projects.
Definition at line 32 of file qgselevationutils.h.
|
static |
Calculates the elevation range for a project.
This method considers the elevation (or z) range available from layers contained within the project and returns the maximal combined elevation range of these layers.
Definition at line 21 of file qgselevationutils.cpp.
|
static |
Returns true
if elevation can be enabled for a map layer.
Definition at line 91 of file qgselevationutils.cpp.
|
static |
Automatically enables elevation for a map layer, using reasonable defaults.
Returns true
if the elevation was enabled successfully.
Definition at line 96 of file qgselevationutils.cpp.
|
static |
Returns a list of significant elevation/z-values for the specified layers.
These values will be highlighted in elevation related widgets for the project.
Definition at line 70 of file qgselevationutils.cpp.
|
static |
Returns a list of significant elevation/z-values for the specified project, using the values from layers contained by the project.
These values will be highlighted in elevation related widgets for the project.
Definition at line 57 of file qgselevationutils.cpp.