VTK  9.0.1
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 
27 class GDALDataset;
28 
29 class VTKGEOVISGDAL_EXPORT vtkGDALRasterReprojection : public vtkObject
30 {
31 public:
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 
78 protected:
81 
82  double MaxError;
84 
85 private:
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.
static vtkGDALRasterReprojection * New()
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...
~vtkGDALRasterReprojection() override
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:63
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165