QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Setting options for loading raster layers. More...
#include <qgsrasterlayer.h>
Public Member Functions | |
LayerOptions (bool loadDefaultStyle=true, const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext()) | |
Constructor for LayerOptions. | |
Public Attributes | |
bool | loadDefaultStyle = true |
Sets to true if the default layer style should be loaded. | |
bool | skipCrsValidation = false |
Controls whether the layer is allowed to have an invalid/unknown CRS. | |
QgsCoordinateTransformContext | transformContext = QgsCoordinateTransformContext() |
Coordinate transform context. | |
Setting options for loading raster layers.
Definition at line 114 of file qgsrasterlayer.h.
|
inlineexplicit |
Constructor for LayerOptions.
Definition at line 120 of file qgsrasterlayer.h.
bool QgsRasterLayer::LayerOptions::loadDefaultStyle = true |
Sets to true
if the default layer style should be loaded.
Definition at line 127 of file qgsrasterlayer.h.
bool QgsRasterLayer::LayerOptions::skipCrsValidation = false |
Controls whether the layer is allowed to have an invalid/unknown CRS.
If true
, then no validation will be performed on the layer's CRS and the layer layer's crs() may be invalid() (i.e. the layer will have no georeferencing available and will be treated as having purely numerical coordinates).
If false
(the default), the layer's CRS will be validated using QgsCoordinateReferenceSystem::validate(), which may cause a blocking, user-facing dialog asking users to manually select the correct CRS for the layer.
Definition at line 148 of file qgsrasterlayer.h.
QgsCoordinateTransformContext QgsRasterLayer::LayerOptions::transformContext = QgsCoordinateTransformContext() |