OGS
VtkRaster.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <string>
7#include "GeoLib/Raster.h"
8
9class vtkImageAlgorithm;
10class vtkImageImport;
11class vtkImageReader2;
12
20{
21public:
25 static vtkImageImport* loadImageFromArray(double const*const data_array, GeoLib::RasterHeader header);
34 static vtkImageAlgorithm* loadImage(const std::string &fileName);
35private:
36#ifdef GEOTIFF_FOUND
42 static vtkImageAlgorithm* loadImageFromTIFF(const std::string& fileName);
43#endif
44
50 static vtkImageReader2* loadImageFromFile(const std::string &fileName);
51
58 static std::string findWorldFile(const std::string& filename);
59
64 static bool readWorldFile(std::string const& filename, vtkImageReader2* image);
65};
Loading raster data such as images or ArcGIS-data into VTK image data structures.
Definition VtkRaster.h:20
static std::string findWorldFile(const std::string &filename)
static vtkImageAlgorithm * loadImageFromTIFF(const std::string &fileName)
static vtkImageReader2 * loadImageFromFile(const std::string &fileName)
static bool readWorldFile(std::string const &filename, vtkImageReader2 *image)
static vtkImageImport * loadImageFromArray(double const *const data_array, GeoLib::RasterHeader header)
Returns a VtkImageAlgorithm from an array of pixel values and some image meta data.
Definition VtkRaster.cpp:71
static vtkImageAlgorithm * loadImage(const std::string &fileName)
Loads an image- or raster-file into an vtkImageAlgorithm-Object.
Definition VtkRaster.cpp:32
Contains the relevant information when storing a geoscientific raster data.
Definition Raster.h:18