QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
32 {
33 RasterItem( const QString &input, const QString &output )
34 : inputFilename( input )
35 , outputFilename( output )
36 {}
37
38 virtual ~RasterItem() = default;
39
47 bool rescaleValues = false;
48
49 // private part
50
53 };
54 typedef QList<QgsAlignRasterData::RasterItem> RasterItemList;
55};
56
57
58#endif // QGSALIGNRASTERDATA_H
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:6078
@ RA_NearestNeighbour
Nearest neighbour (select on one input pixel).
Definition qgis.h:6079
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)