Class: QgsRasterLayerSaveAsDialog

A dialog for configuring raster layer export parameters.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsRasterLayerSaveAsDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

addToCanvas

Returns True if the "add to canvas" checkbox is checked.

buildPyramidsFlag

Returns the pyramid building option.

createOptions

creationOptions

Raster creation options set for the output layer.

hideFormat

hideOutput

maximumTileSizeX

maximumTileSizeY

mode

nColumns

nRows

noData

outputCrs

outputFileName

outputFormat

outputLayerName

Name of the output layer within GeoPackage file

outputRectangle

pyramidsConfigOptions

pyramidsFormat

Returns the selected pyramid format.

pyramidsList

pyramidsResamplingMethod

setAddToCanvas

Sets whether the "add to canvas" checkbox should be checked.

tileMode

xResolution

yResolution

Attributes

CurrentCrs

OriginalCrs

OriginalResolution

RawDataMode

RenderedImageMode

UserCrs

UserResolution

class qgis.gui.QgsRasterLayerSaveAsDialog[source]

Bases: QDialog

__init__(rasterLayer: QgsRasterLayer | None, sourceProvider: QgsRasterDataProvider | None, currentExtent: QgsRectangle, layerCrs: QgsCoordinateReferenceSystem, currentCrs: QgsCoordinateReferenceSystem, parent: QWidget | None = None, f: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())

Constructor for QgsRasterLayerSaveAsDialog

Parameters:
class CrsState

Bases: int

CurrentCrs = 1
class Mode

Bases: int

OriginalCrs = 0
OriginalResolution = 0
RawDataMode = 0
RenderedImageMode = 1
class ResolutionState

Bases: int

UserCrs = 2
UserResolution = 1
addToCanvas(self) bool[source]

Returns True if the “add to canvas” checkbox is checked.

See also

setAddToCanvas()

Return type:

bool

buildPyramidsFlag(self) Qgis.RasterBuildPyramidOption[source]

Returns the pyramid building option.

Return type:

Qgis.RasterBuildPyramidOption

createOptions(self) List[str][source]

Deprecated since version 3.44.

Use creationOptions() instead.

Return type:

List[str]

creationOptions(self) List[str][source]

Raster creation options set for the output layer.

Added in version 3.44.

Return type:

List[str]

hideFormat(self)[source]
hideOutput(self)[source]
maximumTileSizeX(self) int[source]
Return type:

int

maximumTileSizeY(self) int[source]
Return type:

int

mode(self) QgsRasterLayerSaveAsDialog.Mode[source]
Return type:

QgsRasterLayerSaveAsDialog.Mode

nColumns(self) int[source]
Return type:

int

nRows(self) int[source]
Return type:

int

noData(self) List[QgsRasterRange][source]
Return type:

List[QgsRasterRange]

outputCrs(self) QgsCoordinateReferenceSystem[source]
Return type:

QgsCoordinateReferenceSystem

outputFileName(self) str[source]
Return type:

str

outputFormat(self) str[source]
Return type:

str

outputLayerName(self) str[source]

Name of the output layer within GeoPackage file

Added in version 3.4.

Return type:

str

outputRectangle(self) QgsRectangle[source]
Return type:

QgsRectangle

pyramidsConfigOptions(self) List[str][source]
Return type:

List[str]

pyramidsFormat(self) Qgis.RasterPyramidFormat[source]

Returns the selected pyramid format.

Return type:

Qgis.RasterPyramidFormat

pyramidsList(self) List[int]
Return type:

List[int]

pyramidsResamplingMethod(self) str[source]
Return type:

str

setAddToCanvas(self, checked: bool)[source]

Sets whether the “add to canvas” checkbox should be checked.

See also

addToCanvas()

Added in version 3.6.

Parameters:

checked (bool)

tileMode(self) bool[source]
Return type:

bool

xResolution(self) float[source]
Return type:

float

yResolution(self) float[source]
Return type:

float