QGIS API Documentation
2.6.0-Brighton
|
The raster file writer which allows you to save a raster to a new file. More...
#include <qgsrasterfilewriter.h>
Public Types | |
enum | Mode { Raw = 0, Image = 1 } |
enum | WriterError { NoError = 0, SourceProviderError = 1, DestProviderError = 2, CreateDatasourceError = 3, WriteError = 4, NoDataConflict = 5 } |
Public Member Functions | |
QgsRasterFileWriter (const QString &outputUrl) | |
~QgsRasterFileWriter () | |
WriterError | writeRaster (const QgsRasterPipe *pipe, int nCols, int nRows, QgsRectangle outputExtent, const QgsCoordinateReferenceSystem &crs, QProgressDialog *p=0) |
Write raster file. | |
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) |
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) |
QStringList | pyramidsConfigOptions () const |
The raster file writer which allows you to save a raster to a new file.
QgsRasterFileWriter::QgsRasterFileWriter | ( | const QString & | outputUrl | ) |
QgsRasterFileWriter::~QgsRasterFileWriter | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeRaster | ( | const QgsRasterPipe * | pipe, |
int | nCols, | ||
int | nRows, | ||
QgsRectangle | outputExtent, | ||
const QgsCoordinateReferenceSystem & | crs, | ||
QProgressDialog * | p = 0 |
||
) |
Write raster file.
pipe | raster pipe |
nCols | number of output columns |
nRows | number of output rows (or -1 to automatically calculate row number to have square pixels) |
outputExtent | extent to output |
crs | crs to reproject to |
p | dialog to show progress in |