MCPcopy Create free account
hub / github.com/PDAL/PDAL / SetUp

Method SetUp

plugins/tiledb/test/TileDBReaderTest.cpp:69–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67{
68protected:
69 virtual void SetUp()
70 {
71 FauxReader rdr;
72 TileDBWriter writer;
73 Options writer_options;
74 Options reader_options;
75
76 if (FileUtils::directoryExists(data_path))
77 FileUtils::deleteDirectory(data_path);
78
79 writer_options.add("array_name", data_path);
80 writer_options.add("x_tile_size", 1);
81 writer_options.add("y_tile_size", 1);
82 writer_options.add("z_tile_size", 1);
83 writer_options.add("scale_x", 1.0e-9);
84 writer_options.add("scale_y", 1.0e-9);
85 writer_options.add("scale_z", 1.0e-9);
86
87 reader_options.add("mode", "ramp");
88 reader_options.add("count", count);
89 rdr.setOptions(reader_options);
90
91 writer.setOptions(writer_options);
92 writer.setInput(rdr);
93 writer.setSpatialReference(utm16);
94
95 FixedPointTable table(10);
96 writer.prepare(table);
97 writer.execute(table);
98 }
99
100 std::string data_path = Support::temppath("tiledb_array");
101};

Callers

nothing calls this directly

Calls 7

directoryExistsFunction · 0.85
deleteDirectoryFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
setSpatialReferenceMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected