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

Function run

test/unit/filters/InfoFilterTest.cpp:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43{
44
45MetadataNode run(Options& fOpts)
46{
47 StageFactory factory;
48
49 Stage *r = factory.createStage("readers.las");
50 Options rOpts;
51 rOpts.add("filename", Support::datapath("las/autzen_trim.las"));
52 r->setOptions(rOpts);
53
54 Stage *f = factory.createStage("filters.info");
55 f->setOptions(fOpts);
56 f->setInput(*r);
57
58 FixedPointTable t(1000);
59
60 f->prepare(t);
61 f->execute(t);
62 return f->getMetadata();
63}
64
65TEST(InfoFilterTest, point)
66{

Callers 4

TESTFunction · 0.70
TESTFunction · 0.70
TESTFunction · 0.70
runGdalWriterFunction · 0.50

Calls 7

datapathFunction · 0.85
createStageMethod · 0.80
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
getMetadataMethod · 0.45

Tested by

no test coverage detected