Skip to content

File test_e2e.cpp

FileList > src > tests > test_e2e.cpp

Go to the source code of this file

  • #include <gtest/gtest.h>
  • #include <cmath>
  • #include <cstdlib>
  • #include <filesystem>
  • #include <fstream>
  • #include <iostream>
  • #include "config_input/config_input.hpp"
  • #include "contour/contour.hpp"
  • #include "gdal_priv.h"
  • #include "io/gdal_init.hpp"
  • #include "io/gpkg.hpp"
  • #include "isom/colors.hpp"
  • #include "las/las_file.hpp"
  • #include "las/las_point.hpp"
  • #include "lib/grid/grid.hpp"
  • #include "ogr_srs_api.h"
  • #include "process.hpp"
  • #include "tif/tif.hpp"
  • #include "utilities/filesystem.hpp"
  • #include "utilities/progress_tracker.hpp"
  • #include "utilities/resources.hpp"

Classes

Type Name
class E2ETerrainTest
struct TerrainTestParams
class TestGrid

Public Functions

Type Name
INSTANTIATE_TEST_SUITE_P (E2E_New, E2ETerrainTest, ::testing::Values(TerrainTestParams{"FlatTerrainGroundOnly", { return 102.5;}, false, false}, TerrainTestParams{"FlatTerrainWithVegetation", { return 102.5;}, true, false}, TerrainTestParams{"SlopedTerrainGroundOnly", { return 100.0+x *0.2;}, false, true}, TerrainTestParams{"SlopedTerrainWithVegetation", { return 100.0+x *0.2;}, true, true}, TerrainTestParams{"HillTerrainGroundOnly", { double dist=std::sqrt(std::pow(x - 50, 2)+std::pow(y - 50, 2));return 99.0+std::max(0.0, 20.0 - dist *0.5);}, false, true}, TerrainTestParams{"HillTerrainWithVegetation", { double dist=std::sqrt(std::pow(x - 50, 2)+std::pow(y - 50, 2));return 99.0+std::max(0.0, 20.0 - dist *0.5);}, true, true}))
TEST (E2E, ProcessSyntheticData)
TEST (E2E, ProcessEmptyData)
TEST (E2E, ProcessDifferentResolutions)
TEST (E2E, VerifyOutputStructure)
TEST_P (E2ETerrainTest, ProcessTerrain)
Config create_minimal_test_config (const fs::path & output_dir)
LASData create_synthetic_las_data ()
LASData create_synthetic_las_data_ext (const Extent2D & extent, const std::function< double(double, double)> & height_function, bool with_vegetation)
std::string get_wgs84_wkt ()
void verify_raw_vegetation_tif (const fs::path & raw_vege_tif_path, bool should_have_vegetation, const Config & config)
void verify_vegetation_tif (const fs::path & vege_tif_path, bool should_have_vegetation, const Config & config)

Public Functions Documentation

function INSTANTIATE_TEST_SUITE_P

INSTANTIATE_TEST_SUITE_P (
    E2E_New,
    E2ETerrainTest,
    ::testing::Values( TerrainTestParams {"FlatTerrainGroundOnly",[]( double , double ) { return 102.5;}, false , false }, TerrainTestParams {"FlatTerrainWithVegetation",[]( double , double ) { return 102.5;}, true , false }, TerrainTestParams {"SlopedTerrainGroundOnly",[]( double x, double ) { return 100.0+x *0.2;}, false , true }, TerrainTestParams {"SlopedTerrainWithVegetation",[]( double x, double ) { return 100.0+x *0.2;}, true , true }, TerrainTestParams {"HillTerrainGroundOnly",[]( double x, double y) { double  dist =std::sqrt(std::pow(x - 50, 2)+std::pow(y - 50, 2)); return 99.0+std::max(0.0, 20.0 - dist *0.5);}, false , true }, TerrainTestParams {"HillTerrainWithVegetation",[]( double x, double y) { double  dist =std::sqrt(std::pow(x - 50, 2)+std::pow(y - 50, 2)); return 99.0+std::max(0.0, 20.0 - dist *0.5);}, true , true })
) 

function TEST

TEST (
    E2E,
    ProcessSyntheticData
) 

function TEST

TEST (
    E2E,
    ProcessEmptyData
) 

function TEST

TEST (
    E2E,
    ProcessDifferentResolutions
) 

function TEST

TEST (
    E2E,
    VerifyOutputStructure
) 

function TEST_P

TEST_P (
    E2ETerrainTest,
    ProcessTerrain
) 

function create_minimal_test_config

Config create_minimal_test_config (
    const fs::path & output_dir
) 

function create_synthetic_las_data

LASData create_synthetic_las_data () 

function create_synthetic_las_data_ext

LASData create_synthetic_las_data_ext (
    const  Extent2D & extent,
    const std::function< double ( double , double )> & height_function,
    bool with_vegetation
) 

function get_wgs84_wkt

std::string get_wgs84_wkt () 

function verify_raw_vegetation_tif

void verify_raw_vegetation_tif (
    const fs::path & raw_vege_tif_path,
    bool should_have_vegetation,
    const  Config & config
) 

function verify_vegetation_tif

void verify_vegetation_tif (
    const fs::path & vege_tif_path,
    bool should_have_vegetation,
    const  Config & config
) 


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