Skip to content

File tif.hpp

File List > lib > tif > tif.hpp

Go to the documentation of this file

#pragma once

#include "lib/grid/grid.hpp"
#include "utilities/filesystem.hpp"
#include "utilities/progress_tracker.hpp"

template <typename GridT>
void write_to_tif(const Geo<GridT>& grid, const fs::path& filename,
                  ProgressTracker&& progress_tracker, bool include_vertical_crs = false);

Geo<MultiBand<FlexGrid>> read_tif(const fs::path& filename, ProgressTracker&& progress_tracker);

template <typename T>
void write_to_image_tif(const GeoGrid<T>& grid, const fs::path& filename,
                        ProgressTracker&& progress_tracker, std::optional<T> min_val = {},
                        std::optional<T> max_val = {});