15 #ifndef QGSRASTERFILEWRITER_H 16 #define QGSRASTERFILEWRITER_H 18 #include "qgis_core.h" 20 #include <QDomDocument> 21 #include <QDomElement> 23 #include <QStringList> 49 SourceProviderError = 1,
50 DestProviderError = 2,
51 CreateDatasourceError = 3,
63 SortRecommended = 1 << 1,
78 int width,
int height,
91 int width,
int height,
94 int nBands ) SIP_FACTORY;
112 QString outputUrl()
const {
return mOutputUrl; }
148 static QString filterForDriver(
const QString &driverName );
172 static QList< QgsRasterFileWriter::FilterFormatDetails > supportedFiltersAndFormats( RasterFormatOptions options = SortRecommended );
183 static QStringList supportedFormatExtensions( RasterFormatOptions options = SortRecommended );
195 static QString driverForExtension(
const QString &extension );
208 static QStringList extensionsForFormat(
const QString &format );
218 int nCols,
int nRows,
222 const QList<bool> &destHasNoDataValueList,
223 const QList<double> &destNoDataValueList,
243 bool writeVRT(
const QString &file );
245 void addToVRT(
const QString &filename,
int band,
int xSize,
int ySize,
int xOffset,
int yOffset );
250 int iterLeft,
int iterTop,
251 const QString &outputUrl,
int fileIndex,
int nBands,
Qgis::DataType type,
268 const QList<bool> &destHasNoDataValueList = QList<bool>(),
const QList<double> &destNoDataValueList = QList<double>() );
271 void globalOutputParameters(
const QgsRectangle &extent,
int nCols,
int &nRows,
double *geoTransform,
double &pixelSize );
273 QString partFileName(
int fileIndex );
274 QString vrtFileName();
278 QString mOutputProviderKey = QStringLiteral(
"gdal" );
279 QString mOutputFormat = QStringLiteral(
"GTiff" );
280 QStringList mCreateOptions;
284 bool mTiledMode =
false;
285 double mMaxTileWidth = 500;
286 double mMaxTileHeight = 500;
288 QList< int > mPyramidsList;
289 QString mPyramidsResampling = QStringLiteral(
"AVERAGE" );
292 QStringList mPyramidsConfigOptions;
294 QDomDocument mVRTDocument;
295 QList<QDomElement> mVRTBands;
303 #endif // QGSRASTERFILEWRITER_H
A rectangle specified with double values.
Base class for processing modules.
Iterator for sequentially processing raster cells.
QgsRaster::RasterPyramidsFormat pyramidsFormat() const
void setCreateOptions(const QStringList &list)
DataType
Raster data types.
void setOutputFormat(const QString &format)
QStringList pyramidsConfigOptions() const
const QgsCoordinateReferenceSystem & crs
The Qgis class provides global constants for use throughout the application.
QList< int > pyramidsList() const
QgsRaster::RasterBuildPyramids buildPyramidsFlag() const
QString pyramidsResampling() const
RasterFormatOption
Options for sorting and filtering raster formats.
QStringList createOptions() const
void setOutputProviderKey(const QString &key)
Base class for processing filters like renderers, reprojector, resampler etc.
void setTiledMode(bool t)
void setPyramidsConfigOptions(const QStringList &list)
void setMaxTileHeight(int h)
int maxTileHeight() const
QString outputFormat() const
QString outputProviderKey() const
void setPyramidsFormat(QgsRaster::RasterPyramidsFormat f)
This class represents a coordinate reference system (CRS).
void setPyramidsList(const QList< int > &list)
void setMaxTileWidth(int w)
void setPyramidsResampling(const QString &str)
Feedback object tailored for raster block reading.
Base class for raster data providers.
The raster file writer which allows you to save a raster to a new file.
void setBuildPyramidsFlag(QgsRaster::RasterBuildPyramids f)