VTK  9.1.0
vtkGDALRasterReprojection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGDALRasterReprojection.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
20#ifndef vtkGDALRasterReprojection_h
21#define vtkGDALRasterReprojection_h
22
23// VTK Includes
24#include "vtkGeovisGDALModule.h" // For export macro
25#include "vtkObject.h"
26
27class GDALDataset;
28
29class VTKGEOVISGDAL_EXPORT vtkGDALRasterReprojection : public vtkObject
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
42 vtkSetClampMacro(MaxError, double, 0.0, VTK_DOUBLE_MAX);
44
46
56 vtkSetClampMacro(ResamplingAlgorithm, int, 0, 6);
58
67 bool SuggestOutputDimensions(GDALDataset* inputDataset, const char* outputProjection,
68 double geoTransform[6], int* nPixels, int* nLines, double maxError = 0.0);
69
76 bool Reproject(GDALDataset* input, GDALDataset* output);
77
78protected:
81
82 double MaxError;
84
85private:
87 void operator=(const vtkGDALRasterReprojection&) = delete;
88};
89
90#endif // vtkGDALRasterReprojection_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool Reproject(GDALDataset *input, GDALDataset *output)
Compute the reprojection of the input dataset.
bool SuggestOutputDimensions(GDALDataset *inputDataset, const char *outputProjection, double geoTransform[6], int *nPixels, int *nLines, double maxError=0.0)
Suggest image dimensions for specified projection Internally calls GDALSuggestedWarpOutput() The outp...
static vtkGDALRasterReprojection * New()
~vtkGDALRasterReprojection() override
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165