mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgselevationutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsElevationUtils
|
|
{
|
|
%Docstring(signature="appended")
|
|
Contains utility methods for working with elevation from layers and projects.
|
|
|
|
.. versionadded:: 3.18
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgselevationutils.h"
|
|
%End
|
|
public:
|
|
|
|
static QgsDoubleRange calculateZRangeForProject( QgsProject *project );
|
|
%Docstring
|
|
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.
|
|
%End
|
|
|
|
static bool canEnableElevationForLayer( QgsMapLayer *layer );
|
|
%Docstring
|
|
Returns ``True`` if elevation can be enabled for a map ``layer``.
|
|
|
|
.. versionadded:: 3.32
|
|
%End
|
|
|
|
static bool enableElevationForLayer( QgsMapLayer *layer );
|
|
%Docstring
|
|
Automatically enables elevation for a map ``layer``, using reasonable defaults.
|
|
|
|
Returns ``True`` if the elevation was enabled successfully.
|
|
|
|
.. versionadded:: 3.32
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgselevationutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|