| 7 | { |
| 8 | |
| 9 | TEST(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 |
nothing calls this directly
no test coverage detected