| 60 | { |
| 61 | public: |
| 62 | void SetUp() override |
| 63 | { |
| 64 | TileDBWriter writer; |
| 65 | Options writer_options; |
| 66 | |
| 67 | data_path = Support::temppath("xyztm_tdb_array"); |
| 68 | m_time_first = GetParam(); |
| 69 | |
| 70 | if (FileUtils::directoryExists(data_path)) |
| 71 | FileUtils::deleteDirectory(data_path); |
| 72 | |
| 73 | writer_options.add("array_name", data_path); |
| 74 | writer_options.add("use_time_dim", true); |
| 75 | writer_options.add("x_tile_size", 10.f); |
| 76 | writer_options.add("y_tile_size", 10.f); |
| 77 | writer_options.add("z_tile_size", 10.f); |
| 78 | writer_options.add("time_tile_size", 777600.f); |
| 79 | writer_options.add("time_first", m_time_first); |
| 80 | |
| 81 | Options reader_options; |
| 82 | reader_options.add( |
| 83 | "bounds", |
| 84 | DomainBounds( |
| 85 | 0., 0., 0., 1314489618., 10., 10., 10., |
| 86 | 1315353618.)); // sep 1 - sep 11 00:00:00 UTC 2021 -> gpstime |
| 87 | reader_options.add("count", count); |
| 88 | reader_options.add("xyz_mode", "ramp"); |
| 89 | reader_options.add("time_mode", "ramp"); |
| 90 | |
| 91 | XYZTimeFauxReader rdr; |
| 92 | rdr.setOptions(reader_options); |
| 93 | |
| 94 | writer.setOptions(writer_options); |
| 95 | writer.setInput(rdr); |
| 96 | |
| 97 | FixedPointTable table(count); |
| 98 | writer.prepare(table); |
| 99 | writer.execute(table); |
| 100 | } |
| 101 | std::string data_path; |
| 102 | |
| 103 | bool time_is_first() const |
nothing calls this directly
no test coverage detected