Class: QgsRasterLayerSaveAsDialog

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

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsRasterLayerSaveAsDialog

Methods

accept

actionEvent

addToCanvas

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

buildPyramidsFlag

Returns the pyramid building option.

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

createOptions

rtype:

List[str]

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

eventFilter

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

hideFormat

hideOutput

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

maximumTileSizeX

rtype:

int

maximumTileSizeY

rtype:

int

metric

mode

rtype:

QgsRasterLayerSaveAsDialog.Mode

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nColumns

rtype:

int

nRows

rtype:

int

nativeEvent

noData

rtype:

List[QgsRasterRange]

outputCrs

rtype:

QgsCoordinateReferenceSystem

outputFileName

rtype:

str

outputFormat

rtype:

str

outputLayerName

Name of the output layer within GeoPackage file

outputRectangle

rtype:

QgsRectangle

paintEvent

pyramidsConfigOptions

rtype:

List[str]

pyramidsFormat

Returns the selected pyramid format.

pyramidsList

rtype:

List[int]

pyramidsResamplingMethod

rtype:

str

receivers

resizeEvent

sender

senderSignalIndex

setAddToCanvas

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

sharedPainter

showEvent

tabletEvent

tileMode

rtype:

bool

timerEvent

updateMicroFocus

wheelEvent

xResolution

rtype:

float

yResolution

rtype:

float

Attributes

CurrentCrs

OriginalCrs

OriginalResolution

RawDataMode

RenderedImageMode

UserCrs

UserResolution

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
accept(self)
actionEvent(self, a0: QActionEvent | None)
addToCanvas(self) bool

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

See also

setAddToCanvas()

Return type:

bool

buildPyramidsFlag(self) Qgis.RasterBuildPyramidOption

Returns the pyramid building option.

Return type:

Qgis.RasterBuildPyramidOption

changeEvent(self, a0: QEvent | None)
childEvent(self, a0: QChildEvent | None)
closeEvent(self, a0: QCloseEvent | None)
connectNotify(self, signal: QMetaMethod)
contextMenuEvent(self, a0: QContextMenuEvent | None)
create(self, window: PyQt5.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)
createOptions(self) List[str]
Return type:

List[str]

customEvent(self, a0: QEvent | None)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, signal: QMetaMethod)
dragEnterEvent(self, a0: QDragEnterEvent | None)
dragLeaveEvent(self, a0: QDragLeaveEvent | None)
dragMoveEvent(self, a0: QDragMoveEvent | None)
dropEvent(self, a0: QDropEvent | None)
enterEvent(self, a0: QEvent | None)
event(self, a0: QEvent | None) bool
eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
focusInEvent(self, a0: QFocusEvent | None)
focusNextChild(self) bool
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, a0: QFocusEvent | None)
focusPreviousChild(self) bool
hideEvent(self, a0: QHideEvent | None)
hideFormat(self)
hideOutput(self)
initPainter(self, painter: QPainter | None)
inputMethodEvent(self, a0: QInputMethodEvent | None)
isSignalConnected(self, signal: QMetaMethod) bool
keyPressEvent(self, a0: QKeyEvent | None)
keyReleaseEvent(self, a0: QKeyEvent | None)
leaveEvent(self, a0: QEvent | None)
maximumTileSizeX(self) int
Return type:

int

maximumTileSizeY(self) int
Return type:

int

metric(self, a0: QPaintDevice.PaintDeviceMetric) int
mode(self) QgsRasterLayerSaveAsDialog.Mode
Return type:

QgsRasterLayerSaveAsDialog.Mode

mouseDoubleClickEvent(self, a0: QMouseEvent | None)
mouseMoveEvent(self, a0: QMouseEvent | None)
mousePressEvent(self, a0: QMouseEvent | None)
mouseReleaseEvent(self, a0: QMouseEvent | None)
moveEvent(self, a0: QMoveEvent | None)
nColumns(self) int
Return type:

int

nRows(self) int
Return type:

int

nativeEvent(self, eventType: QByteArray | bytes | bytearray, message: PyQt5.sip.voidptr | None)
noData(self) List[QgsRasterRange]
Return type:

List[QgsRasterRange]

outputCrs(self) QgsCoordinateReferenceSystem
Return type:

QgsCoordinateReferenceSystem

outputFileName(self) str
Return type:

str

outputFormat(self) str
Return type:

str

outputLayerName(self) str

Name of the output layer within GeoPackage file

Added in version 3.4.

Return type:

str

outputRectangle(self) QgsRectangle
Return type:

QgsRectangle

paintEvent(self, a0: QPaintEvent | None)
pyramidsConfigOptions(self) List[str]
Return type:

List[str]

pyramidsFormat(self) Qgis.RasterPyramidFormat

Returns the selected pyramid format.

Return type:

Qgis.RasterPyramidFormat

pyramidsList(self) List[int]
Return type:

List[int]

pyramidsResamplingMethod(self) str
Return type:

str

receivers(self, signal: PYQT_SIGNAL) int
resizeEvent(self, a0: QResizeEvent | None)
sender(self) QObject | None
senderSignalIndex(self) int
setAddToCanvas(self, checked: bool)

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

See also

addToCanvas()

Added in version 3.6.

Parameters:

checked (bool)

sharedPainter(self) QPainter | None
showEvent(self, a0: QShowEvent | None)
tabletEvent(self, a0: QTabletEvent | None)
tileMode(self) bool
Return type:

bool

timerEvent(self, a0: QTimerEvent | None)
updateMicroFocus(self)
wheelEvent(self, a0: QWheelEvent | None)
xResolution(self) float
Return type:

float

yResolution(self) float
Return type:

float