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()
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()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
createOptions(self) → List[str]
Return type

List[str]

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
hideFormat(self)
hideOutput(self)
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
maximumTileSizeX(self) → int
Return type

int

maximumTileSizeY(self) → int
Return type

int

metric()
mode(self) → QgsRasterLayerSaveAsDialog.Mode
Return type

QgsRasterLayerSaveAsDialog.Mode

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

int

nRows(self) → int
Return type

int

nativeEvent()
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()
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()
resizeEvent()
sender()
senderSignalIndex()
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()
showEvent()
tabletEvent()
tileMode(self) → bool
Return type

bool

timerEvent()
updateMicroFocus()
wheelEvent()
xResolution(self) → float
Return type

float

yResolution(self) → float
Return type

float