Class: QgsRasterLayerSaveAsDialog¶
A dialog for configuring raster layer export parameters.
Class Hierarchy¶
Base classes¶
Methods
Returns |
|
Returns the pyramid building option. |
|
Raster creation options set for the output layer. |
|
Name of the output layer within GeoPackage file |
|
Returns the selected pyramid format. |
|
Sets whether the "add to canvas" checkbox should be checked. |
|
Attributes
- 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:
rasterLayer (Optional[QgsRasterLayer])
sourceProvider (Optional[QgsRasterDataProvider])
currentExtent (QgsRectangle)
layerCrs (QgsCoordinateReferenceSystem)
currentCrs (QgsCoordinateReferenceSystem)
parent (Optional[QWidget] = None)
f (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())
- 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
- Return type:
bool
- buildPyramidsFlag(self) Qgis.RasterBuildPyramidOption [source]¶
Returns the pyramid building option.
- Return type:
- 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]
- mode(self) QgsRasterLayerSaveAsDialog.Mode [source]¶
- Return type:
- noData(self) List[QgsRasterRange] [source]¶
- Return type:
List[QgsRasterRange]
- outputCrs(self) QgsCoordinateReferenceSystem [source]¶
- Return type:
- 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:
- pyramidsFormat(self) Qgis.RasterPyramidFormat [source]¶
Returns the selected pyramid format.
- Return type:
- pyramidsList(self) List[int] ¶
- Return type:
List[int]