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

Function TEST

test/unit/io/QFITReaderTest.cpp:63–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63TEST(QFITReaderTest, test_10_word)
64{
65 Options options;
66
67 options.add("filename", Support::datapath("qfit/10-word.qi"));
68 options.add("flip_coordinates", false);
69 options.add("scale_z", 0.001f);
70 options.add("count", 3);
71
72 std::shared_ptr<QfitReader> reader(new QfitReader);
73 reader->setOptions(options);
74 EXPECT_EQ(reader->getName(), "readers.qfit");
75
76 PointTable table;
77 reader->prepare(table);
78 PointViewSet viewSet = reader->execute(table);
79 EXPECT_EQ(viewSet.size(), 1u);
80 PointViewPtr view = *viewSet.begin();
81 EXPECT_EQ(view->size(), 3u);
82
83 Check_Point(*view, 0, 221.826822, 59.205160, 32.0900, 0);
84 Check_Point(*view, 1, 221.826740, 59.205161, 32.0190, 0);
85 Check_Point(*view, 2, 221.826658, 59.205164, 32.0000, 0);
86}
87
88TEST(QFITReaderTest, test_14_word)
89{

Callers

nothing calls this directly

Calls 9

datapathFunction · 0.85
Check_PointFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
getNameMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected