QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
27
class
CORE_EXPORT
QgsAlignRasterData
28
{
29
public
:
31
struct
RasterItem
32
{
33
RasterItem
(
const
QString &input,
const
QString &output )
34
:
inputFilename
( input )
35
,
outputFilename
( output )
36
{}
37
38
virtual
~RasterItem
() =
default
;
39
41
QString
inputFilename
;
43
QString
outputFilename
;
45
Qgis::GdalResampleAlgorithm
resampleMethod
=
Qgis::GdalResampleAlgorithm::RA_NearestNeighbour
;
47
bool
rescaleValues
=
false
;
48
49
// private part
50
52
double
srcCellSizeInDestCRS
= 0.0;
53
};
54
typedef
QList<QgsAlignRasterData::RasterItem>
RasterItemList
;
55
};
56
57
58
#endif
// QGSALIGNRASTERDATA_H
Qgis::GdalResampleAlgorithm
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition
qgis.h:6542
Qgis::GdalResampleAlgorithm::RA_NearestNeighbour
@ RA_NearestNeighbour
Nearest neighbour (select on one input pixel).
Definition
qgis.h:6543
QgsAlignRasterData
Provides data structures and enums for the align raster tool.
Definition
qgsalignrasterdata.h:28
QgsAlignRasterData::RasterItemList
QList< QgsAlignRasterData::RasterItem > RasterItemList
Definition
qgsalignrasterdata.h:54
qgis.h
QgsAlignRasterData::RasterItem::resampleMethod
Qgis::GdalResampleAlgorithm resampleMethod
resampling method to be used
Definition
qgsalignrasterdata.h:45
QgsAlignRasterData::RasterItem::rescaleValues
bool rescaleValues
rescaling of values according to the change of pixel size
Definition
qgsalignrasterdata.h:47
QgsAlignRasterData::RasterItem::srcCellSizeInDestCRS
double srcCellSizeInDestCRS
used for rescaling of values (if necessary)
Definition
qgsalignrasterdata.h:52
QgsAlignRasterData::RasterItem::RasterItem
RasterItem(const QString &input, const QString &output)
Definition
qgsalignrasterdata.h:33
QgsAlignRasterData::RasterItem::~RasterItem
virtual ~RasterItem()=default
QgsAlignRasterData::RasterItem::inputFilename
QString inputFilename
filename of the source raster
Definition
qgsalignrasterdata.h:41
QgsAlignRasterData::RasterItem::outputFilename
QString outputFilename
filename of the newly created aligned raster (will be overwritten if exists already)
Definition
qgsalignrasterdata.h:43
Generated on
for QGIS API Documentation by
1.17.0