Class: QgsRasterLayerSaveAsDialog

A dialog for configuring raster layer export parameters.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.gui.QgsRasterLayerSaveAsDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Enums

CrsState

Mode

ResolutionState

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

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.WindowType = Qt.WindowFlags())

Constructor for QgsRasterLayerSaveAsDialog

Parameters:
class CrsState(*values)

Bases: IntEnum

CurrentCrs = 1
OriginalCrs = 0
UserCrs = 2
CurrentCrs = 1
class Mode(*values)

Bases: IntEnum

RawDataMode = 0
RenderedImageMode = 1
OriginalCrs = 0
OriginalResolution = 0
RawDataMode = 0
RenderedImageMode = 1
class ResolutionState(*values)

Bases: IntEnum

OriginalResolution = 0
UserResolution = 1
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