QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsalignrasterdata.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsalignrasterdata.h
3 --------------------------------------
4 Date : July 2023
5 Copyright : (C) 2023 by Alexander Bruy
6 Email : alexander dot bruy at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSALIGNRASTERDATA_H
17#define QGSALIGNRASTERDATA_H
18
19#include "qgis.h"
20
27class CORE_EXPORT QgsAlignRasterData
28{
29 public:
30
33 {
34 RasterItem( const QString &input, const QString &output )
35 : inputFilename( input )
36 , outputFilename( output )
37 {}
38
39 virtual ~RasterItem() = default;
40
48 bool rescaleValues = false;
49
50 // private part
51
54 };
55 typedef QList<QgsAlignRasterData::RasterItem> RasterItemList;
56};
57
58
59#endif // QGSALIGNRASTERDATA_H
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:5722
@ RA_NearestNeighbour
Nearest neighbour (select on one input pixel).
Definition qgis.h:5723
Provides data structures and enums for the align raster tool.
QList< QgsAlignRasterData::RasterItem > RasterItemList
Qgis::GdalResampleAlgorithm resampleMethod
resampling method to be used
bool rescaleValues
rescaling of values according to the change of pixel size
double srcCellSizeInDestCRS
used for rescaling of values (if necessary)
RasterItem(const QString &input, const QString &output)
virtual ~RasterItem()=default
QString inputFilename
filename of the source raster
QString outputFilename
filename of the newly created aligned raster (will be overwritten if exists already)