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

Method splitView

pdal/Stage.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61void Stage::splitView(const PointViewPtr& view, PointViewPtr& keep, PointViewPtr& skip)
62{
63 const expr::ConditionalExpression *where = whereExpr();
64 if (where)
65 {
66 PointView *k = keep.get();
67 PointView *s = skip.get();
68 for (PointRef p : *view)
69 {
70 PointView *active = where->eval(p) ? k : s;
71 active->appendPoint(*view, p.pointId());
72 }
73 }
74 else
75 keep = view;
76}
77
78
79void Stage::addConditionalOptions(const Options& opts)

Callers 1

StageRunnerMethod · 0.80

Calls 3

appendPointMethod · 0.80
getMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected