QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
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 , resampleMethod( Qgis::GdalResampleAlgorithm::RA_NearestNeighbour )
38 , rescaleValues( false )
39 , srcCellSizeInDestCRS( 0.0 )
40 {}
41
42 virtual ~RasterItem() = default;
43
52
53 // private part
54
57 };
58 typedef QList<QgsAlignRasterData::RasterItem> RasterItemList;
59};
60
61
62#endif // QGSALIGNRASTERDATA_H
The Qgis class provides global constants for use throughout the application.
Definition qgis.h:54
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg)
Definition qgis.h:5312
The QgsAlignRasterData class provides data structures and enums for align raster tool.
QList< QgsAlignRasterData::RasterItem > RasterItemList
Definition of one raster layer for alignment.
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)