Skip to content

File tif.cpp

FileList > lib > tif > tif.cpp

Go to the source code of this file

  • #include "tif.hpp"
  • #include <gdal.h>
  • #include <algorithm>
  • #include <optional>
  • #include <type_traits>
  • #include "assert/gdal_assert.hpp"
  • #include "gdal_priv.h"
  • #include "io/crs.hpp"
  • #include "io/gdal_init.hpp"
  • #include "isom/colors.hpp"

Classes

Type Name
struct is_std_optional <typename T>
struct is_std_optional< std::optional< T > > <typename T>

Public Attributes

Type Name
constexpr bool IS_STD_OPTIONAL_V = [**is\_std\_optional**](structis__std__optional.md)&lt;T&gt;::value

Public Functions

Type Name
constexpr GDALDataType gdal_type ()
Geo< MultiBand< FlexGrid > > read_tif (const fs::path & filename, ProgressTracker && progress_tracker)
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)
template void write_to_image_tif (const GeoGrid< double > & grid, const fs::path & filename, ProgressTracker && progress_tracker, std::optional< double > min_val, std::optional< double > max_val)
void write_to_tif (const Geo< GridT > & grid, const fs::path & filename, ProgressTracker && progress_tracker, const bool include_vertical_crs)
template void write_to_tif (const GeoGrid< double > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< float > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< std::byte > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< RGBColor > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< std::optional< std::byte > > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< std::optional< double > > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const GeoGrid< std::optional< float > > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)
template void write_to_tif (const Geo< MultiBand< FlexGrid > > & grid, const fs::path & filename, ProgressTracker && progress_tracker, bool include_vertical_crs)

Public Attributes Documentation

variable IS_STD_OPTIONAL_V

constexpr bool IS_STD_OPTIONAL_V;

Public Functions Documentation

function gdal_type

template<typename T>
constexpr GDALDataType gdal_type () 

function read_tif

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

function write_to_image_tif

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
) 

function write_to_image_tif

template void write_to_image_tif (
    const GeoGrid < double > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    std::optional< double > min_val,
    std::optional< double > max_val
) 

function write_to_tif

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

function write_to_tif

template void write_to_tif (
    const GeoGrid < double > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < float > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < std::byte > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < RGBColor > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < std::optional< std::byte > > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < std::optional< double > > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const GeoGrid < std::optional< float > > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 

function write_to_tif

template void write_to_tif (
    const Geo < MultiBand < FlexGrid > > & grid,
    const fs::path & filename,
    ProgressTracker && progress_tracker,
    bool include_vertical_crs
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/tif/tif.cpp