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

Function TEST

plugins/trajectory/test/TrajectoryTest.cpp:9–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{
8
9TEST(TrajectoryTest, t1)
10{
11 StageFactory f;
12
13 Stage& r = *(f.createStage("readers.las"));
14 Options lasOpts;
15 lasOpts.add("filename", Support::datapath("laz/C2_L2.laz"));
16 r.setOptions(lasOpts);
17
18 Stage& t = *(f.createStage("filters.trajectory"));
19 t.setInput(r);
20
21 Options txtOpts;
22 txtOpts.add("order", "GpsTime, X, Y, Z");
23 txtOpts.add("precision", 6);
24 txtOpts.add("keep_unspecified", false);
25 txtOpts.add("write_header", false);
26 txtOpts.add("delimiter", " ");
27 txtOpts.add("filename", Support::temppath("tran.txt"));
28 Stage& w = *(f.createStage("writers.text"));
29 w.setOptions(txtOpts);
30 w.setInput(t);
31
32 PointTable table;
33 w.prepare(table);
34 w.execute(table);
35
36 EXPECT_EQ(Support::diff_files(Support::temppath("tran.txt"),
37 Support::datapath("text/C2_L2-traj.txt")), 0);
38}
39
40} // namespace pdal

Callers

nothing calls this directly

Calls 8

datapathFunction · 0.85
temppathFunction · 0.85
diff_filesFunction · 0.85
createStageMethod · 0.80
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected