OGS
AsciiRasterInterface.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <optional>
17#include <string>
18#include <vector>
19
20#include "GeoLib/Raster.h"
21
22namespace FileIO
23{
30{
31public:
34 static GeoLib::Raster* readRaster(std::string const& fname);
35
37 static GeoLib::Raster* getRasterFromASCFile(std::string const& fname);
38
40 static GeoLib::Raster* getRasterFromSurferFile(std::string const& fname);
41
43 static GeoLib::Raster* getRasterFromXyzFile(std::string const& fname);
44
46 static void writeRasterAsASC(GeoLib::Raster const& raster,
47 std::string const& file_name);
48};
49
52std::optional<std::vector<GeoLib::Raster const*>> readRasters(
53 std::vector<std::string> const& raster_paths);
54} // end namespace FileIO
Definition of the GeoLib::Raster class.
static GeoLib::Raster * getRasterFromXyzFile(std::string const &fname)
Reads a XYZ raster file.
static GeoLib::Raster * getRasterFromSurferFile(std::string const &fname)
Reads a Surfer GRD raster file.
static void writeRasterAsASC(GeoLib::Raster const &raster, std::string const &file_name)
Writes an Esri asc-file.
static GeoLib::Raster * readRaster(std::string const &fname)
static GeoLib::Raster * getRasterFromASCFile(std::string const &fname)
Reads an ArcGis ASC raster file.
Class Raster is used for managing raster data.
Definition Raster.h:49
std::optional< std::vector< GeoLib::Raster const * > > readRasters(std::vector< std::string > const &raster_paths)