1
+ /************************************************************************
2
+ * This file has been generated automatically from *
3
+ * *
4
+ * src/core/raster/qgsrasterfilewriter.h *
5
+ * *
6
+ * Do not edit manually ! Edit header and run scripts/sipify.pl again *
7
+ ************************************************************************/
8
+
9
+
1
10
2
- /** Raster file writer */
3
11
4
- /** \ingroup core
5
- * The raster file writer which allows you to save a raster to a new file.
6
- */
7
12
class QgsRasterFileWriter
8
13
{
14
+ %Docstring
15
+ The raster file writer which allows you to save a raster to a new file.
16
+ %End
17
+
9
18
%TypeHeaderCode
10
- #include <qgsrasterfilewriter.h>
11
- #include <qgsrasterdataprovider.h>
19
+ #include "qgsrasterfilewriter.h"
12
20
%End
13
21
public:
14
22
enum Mode
15
23
{
16
- Raw, // Raw data
17
- Image, // Rendered image
24
+ Raw,
25
+ Image
18
26
};
19
27
enum WriterError
20
28
{
@@ -23,40 +31,49 @@ class QgsRasterFileWriter
23
31
DestProviderError,
24
32
CreateDatasourceError,
25
33
WriteError,
26
- // Internal error if a value used for 'no data' was found in input
27
34
NoDataConflict,
35
+ WriteCanceled,
28
36
};
29
37
30
- QgsRasterFileWriter( const QString& outputUrl );
31
-
32
- /** Create a raster file with one band without initializing the pixel data.
33
- * Returned provider may be used to initialize the raster using writeBlock() calls.
34
- * Ownership of the returned provider is passed to the caller.
35
- * @note Does not work with tiled mode enabled.
36
- * @returns Instance of data provider in editing mode (on success) or null on error.
37
- * @note added in QGIS 3.0
38
- */
39
- QgsRasterDataProvider* createOneBandRaster( Qgis::DataType dataType,
40
- int width, int height,
41
- const QgsRectangle& extent,
42
- const QgsCoordinateReferenceSystem& crs ) /Factory/;
43
-
44
- /** Write raster file
45
- @param pipe raster pipe
46
- @param nCols number of output columns
47
- @param nRows number of output rows (or -1 to automatically calculate row number to have square pixels)
48
- @param outputExtent extent to output
49
- @param crs crs to reproject to
50
- @param p dialog to show progress in */
51
- WriterError writeRaster( const QgsRasterPipe* pipe, int nCols, int nRows, const QgsRectangle& outputExtent,
52
- const QgsCoordinateReferenceSystem& crs, QgsRasterBlockFeedback *feedback = nullptr );
38
+ QgsRasterFileWriter( const QString &outputUrl );
39
+
40
+ QgsRasterDataProvider *createOneBandRaster( Qgis::DataType dataType,
41
+ int width, int height,
42
+ const QgsRectangle &extent,
43
+ const QgsCoordinateReferenceSystem &crs ) /Factory/;
44
+ %Docstring
45
+ Create a raster file with one band without initializing the pixel data.
46
+ Returned provider may be used to initialize the raster using writeBlock() calls.
47
+ Ownership of the returned provider is passed to the caller.
48
+ .. note::
49
+
50
+ Does not work with tiled mode enabled.
51
+ \returns Instance of data provider in editing mode (on success) or null on error.
52
+ .. versionadded:: 3.0
53
+ %End
54
+
55
+ WriterError writeRaster( const QgsRasterPipe *pipe, int nCols, int nRows, const QgsRectangle &outputExtent,
56
+ const QgsCoordinateReferenceSystem &crs, QgsRasterBlockFeedback *feedback = 0 );
57
+ %Docstring
58
+ Write raster file
59
+ \param pipe raster pipe
60
+ \param nCols number of output columns
61
+ \param nRows number of output rows (or -1 to automatically calculate row number to have square pixels)
62
+ \param outputExtent extent to output
63
+ \param crs crs to reproject to
64
+ \param feedback optional feedback object for progress reports
65
+ %End
53
66
54
67
QString outputUrl() const;
68
+ %Docstring
69
+ Returns the output URL for the raster.
70
+ .. versionadded:: 3.0
71
+ %End
55
72
56
- void setOutputFormat( const QString& format );
73
+ void setOutputFormat( const QString & format );
57
74
QString outputFormat() const;
58
75
59
- void setOutputProviderKey( const QString& key );
76
+ void setOutputProviderKey( const QString & key );
60
77
QString outputProviderKey() const;
61
78
62
79
void setTiledMode( bool t );
@@ -69,22 +86,29 @@ class QgsRasterFileWriter
69
86
void setBuildPyramidsFlag( QgsRaster::RasterBuildPyramids f );
70
87
71
88
QList< int > pyramidsList() const;
72
- void setPyramidsList( const QList< int > & list );
73
-
89
+ void setPyramidsList( const QList< int > &list );
74
90
75
91
QString pyramidsResampling() const;
76
- void setPyramidsResampling( const QString & str );
92
+ void setPyramidsResampling( const QString &str );
77
93
78
94
QgsRaster::RasterPyramidsFormat pyramidsFormat() const;
79
95
void setPyramidsFormat( QgsRaster::RasterPyramidsFormat f );
80
96
81
97
void setMaxTileHeight( int h );
82
98
int maxTileHeight() const;
83
99
84
- void setCreateOptions( const QStringList& list );
100
+ void setCreateOptions( const QStringList & list );
85
101
QStringList createOptions() const;
86
102
87
- void setPyramidsConfigOptions( const QStringList& list );
103
+ void setPyramidsConfigOptions( const QStringList & list );
88
104
QStringList pyramidsConfigOptions() const;
89
105
90
106
};
107
+
108
+ /************************************************************************
109
+ * This file has been generated automatically from *
110
+ * *
111
+ * src/core/raster/qgsrasterfilewriter.h *
112
+ * *
113
+ * Do not edit manually ! Edit header and run scripts/sipify.pl again *
114
+ ************************************************************************/
0 commit comments