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,
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,
241 void createVRT(
int xSize,
int ySize,
const QgsCoordinateReferenceSystem &crs,
double *geoTransform,
Qgis::DataType type,
const QList<bool> &destHasNoDataValueList,
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 );
246 void buildPyramids(
const QString &filename );
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;
279 QString mOutputFormat;
280 QStringList mCreateOptions;
284 bool mTiledMode =
false;
285 double mMaxTileWidth = 500;
286 double mMaxTileHeight = 500;
288 QList< int > mPyramidsList;
289 QString mPyramidsResampling;
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.
QStringList createOptions() const
int maxTileHeight() const
void setCreateOptions(const QStringList &list)
DataType
Raster data types.
void setOutputFormat(const QString &format)
QString outputProviderKey() const
QString outputFormat() const
RasterFormatOption
Options for sorting and filtering raster formats.
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)
QString pyramidsResampling() const
void setPyramidsFormat(QgsRaster::RasterPyramidsFormat f)
This class represents a coordinate reference system (CRS).
void setPyramidsList(const QList< int > &list)
QStringList pyramidsConfigOptions() const
QList< int > pyramidsList() const
void setMaxTileWidth(int w)
void setPyramidsResampling(const QString &str)
Feedback object tailored for raster block reading.
QString outputUrl() const
Returns the output URL for the raster.
QgsRaster::RasterPyramidsFormat pyramidsFormat() const
Base class for raster data providers.
QgsRaster::RasterBuildPyramids buildPyramidsFlag() const
The raster file writer which allows you to save a raster to a new file.
void setBuildPyramidsFlag(QgsRaster::RasterBuildPyramids f)