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

Method writeDimMajor

io/BpfWriter.cpp:320–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320void BpfWriter::writeDimMajor(const PointView* data)
321{
322 // We're going to pretend for now that we only ever have one point buffer.
323 BpfCompressor compressor(m_stream, data->size() * sizeof(float));
324
325 for (auto & bpfDim : m_dims)
326 {
327 if (m_header.m_compression)
328 compressor.startBlock();
329 for (PointId idx = 0; idx < data->size(); ++idx)
330 {
331 double d = getAdjustedValue(data, bpfDim, idx);
332 m_stream << (float)d;
333 }
334 if (m_header.m_compression)
335 {
336 compressor.compress();
337 compressor.finish();
338 }
339 }
340}
341
342
343void BpfWriter::writeByteMajor(const PointView* data)

Callers

nothing calls this directly

Calls 4

startBlockMethod · 0.80
sizeMethod · 0.45
compressMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected