QGIS/python/core/raster/qgsrasterfilewriter.sip

115 lines
3.7 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterfilewriter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterFileWriter
{
%Docstring
The raster file writer which allows you to save a raster to a new file.
%End
%TypeHeaderCode
#include "qgsrasterfilewriter.h"
%End
public:
2014-01-27 09:22:24 +01:00
enum Mode
{
Raw,
Image
2014-01-27 09:22:24 +01:00
};
enum WriterError
{
2014-06-02 21:00:51 +02:00
NoError,
SourceProviderError,
DestProviderError,
CreateDatasourceError,
WriteError,
NoDataConflict,
WriteCanceled,
};
QgsRasterFileWriter( const QString &outputUrl );
QgsRasterDataProvider *createOneBandRaster( Qgis::DataType dataType,
int width, int height,
const QgsRectangle &extent,
const QgsCoordinateReferenceSystem &crs ) /Factory/;
%Docstring
Create a raster file with one band without initializing the pixel data.
Returned provider may be used to initialize the raster using writeBlock() calls.
Ownership of the returned provider is passed to the caller.
.. note::
Does not work with tiled mode enabled.
\returns Instance of data provider in editing mode (on success) or None on error.
.. versionadded:: 3.0
%End
WriterError writeRaster( const QgsRasterPipe *pipe, int nCols, int nRows, const QgsRectangle &outputExtent,
const QgsCoordinateReferenceSystem &crs, QgsRasterBlockFeedback *feedback = 0 );
%Docstring
Write raster file
\param pipe raster pipe
\param nCols number of output columns
\param nRows number of output rows (or -1 to automatically calculate row number to have square pixels)
\param outputExtent extent to output
\param crs crs to reproject to
\param feedback optional feedback object for progress reports
%End
QString outputUrl() const;
%Docstring
Returns the output URL for the raster.
.. versionadded:: 3.0
%End
void setOutputFormat( const QString &format );
QString outputFormat() const;
void setOutputProviderKey( const QString &key );
QString outputProviderKey() const;
void setTiledMode( bool t );
bool tiledMode() const;
void setMaxTileWidth( int w );
int maxTileWidth() const;
QgsRaster::RasterBuildPyramids buildPyramidsFlag() const;
void setBuildPyramidsFlag( QgsRaster::RasterBuildPyramids f );
QList< int > pyramidsList() const;
void setPyramidsList( const QList< int > &list );
2016-02-14 03:50:23 +01:00
QString pyramidsResampling() const;
void setPyramidsResampling( const QString &str );
QgsRaster::RasterPyramidsFormat pyramidsFormat() const;
void setPyramidsFormat( QgsRaster::RasterPyramidsFormat f );
void setMaxTileHeight( int h );
int maxTileHeight() const;
void setCreateOptions( const QStringList &list );
QStringList createOptions() const;
void setPyramidsConfigOptions( const QStringList &list );
2014-05-27 23:22:50 +02:00
QStringList pyramidsConfigOptions() const;
2015-02-03 02:21:52 +01:00
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterfilewriter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/