Class: QgsRasterLayerSaveAsDialog

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

Bases: PyQt5.QtWidgets.QDialog

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

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

See also

setAddToCanvas()

Return type

bool

buildPyramidsFlag(self) → QgsRaster.RasterBuildPyramids
Return type

QgsRaster.RasterBuildPyramids

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

List[str]

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

int

maximumTileSizeY(self) → int
Return type

int

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

QgsRasterLayerSaveAsDialog.Mode

mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nColumns(self) → int
Return type

int

nRows(self) → int
Return type

int

nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
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

New in version 3.4.

Return type

str

outputRectangle(self)QgsRectangle
Return type

QgsRectangle

paintEvent(self, QPaintEvent)
pyramidsConfigOptions(self) → List[str]
Return type

List[str]

pyramidsFormat(self) → QgsRaster.RasterPyramidsFormat
Return type

QgsRaster.RasterPyramidsFormat

pyramidsList(self) → List[int]
Return type

List[int]

pyramidsResamplingMethod(self) → str
Return type

str

receivers(self, PYQT_SIGNAL) → int
resizeEvent(self, QResizeEvent)
sender(self) → QObject
senderSignalIndex(self) → int
setAddToCanvas(self, checked: bool)

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

See also

addToCanvas()

New in version 3.6.

Parameters

checked (bool) –

sharedPainter(self) → QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
tileMode(self) → bool
Return type

bool

timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)
xResolution(self) → float
Return type

float

yResolution(self) → float
Return type

float