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

Method run

io/private/copcwriter/Processor.cpp:58–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58void Processor::run()
59{
60 m_loader.init(b.pointFormatId, b.scaling, b.extraDims);
61 m_vi.initParentOctant();
62
63 size_t totalPoints = 0;
64 for (int i = 0; i < 8; ++i)
65 {
66 OctantInfo& child = m_vi.child(i);
67
68 totalPoints += child.numPoints();
69 if (child.numPoints() < MinimumPoints)
70 m_vi.octant().movePoints(child);
71 }
72 // It's possible that all the file infos have been moved above, but this is cheap.
73 if (totalPoints < MinimumTotalPoints)
74 for (int i = 0; i < 8; ++i)
75 {
76 OctantInfo& child = m_vi.child(i);
77 m_vi.octant().movePoints(child);
78 }
79
80 sample();
81 write();
82 m_manager.queue(m_vi.octant());
83}
84
85void Processor::write()
86{

Callers

nothing calls this directly

Calls 7

initParentOctantMethod · 0.80
childMethod · 0.80
movePointsMethod · 0.80
queueMethod · 0.80
writeFunction · 0.50
initMethod · 0.45
numPointsMethod · 0.45

Tested by

no test coverage detected