Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
GeoTiff.hpp
Go to the documentation of this file.
1#pragma once
2#include "GISFile.hpp"
3namespace fishnet {
9public:
10 GeoTiff(std::filesystem::path path):AbstractRasterFile(path){
11 if(not supports(path)){
12 throw std::invalid_argument("Not a GeoTiff file: "+ path.string());
13 }
14 }
15
16 bool remove() const noexcept override;
17
18 constexpr GISFileType type() const noexcept override {
20 }
21
22 GeoTiff & move(std::filesystem::path const & path);
23
24 GeoTiff copy(std::filesystem::path const & path) const;
25
26 std::string toString() const noexcept;
27};
28
29static_assert(GISFile<GeoTiff>);
30static_assert(!VectorGISFile<GeoTiff>);
31static_assert(RasterGISFile<GeoTiff>);
32}
bool supports(const std::filesystem::path &path) const noexcept
Checks if the supplied path is supported by the concrete GISFile implementation.
Definition GISFile.hpp:90
Definition GISFile.hpp:162
GeoTiff handle implementation.
Definition GeoTiff.hpp:8
GeoTiff copy(std::filesystem::path const &path) const
Definition Geotiff.cpp:18
GeoTiff(std::filesystem::path path)
Definition GeoTiff.hpp:10
std::string toString() const noexcept
Definition Geotiff.cpp:24
GeoTiff & move(std::filesystem::path const &path)
Definition Geotiff.cpp:11
constexpr GISFileType type() const noexcept override
Returns the type of GISFile.
Definition GeoTiff.hpp:18
bool remove() const noexcept override
Removes the file from the filesystem.
Definition Geotiff.cpp:7
Interface for GISFile types. Implementation have to inherit from AbstractGISFile and have to printabl...
Definition GISFile.hpp:175
Interface for all Raster GISFile types.
Definition GISFile.hpp:197
Interface for all Vector GISFile types.
Definition GISFile.hpp:187
Definition BFSClustering.hpp:5
GISFileType
Definition GISFile.hpp:11