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

Method fillWriteBuf

io/LasWriter.cpp:1079–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077
1078
1079point_count_t LasWriter::fillWriteBuf(const PointView& view,
1080 PointId startId, std::vector<char>& buf)
1081{
1082 point_count_t blocksize = buf.size() / d->header.pointSize;
1083 blocksize = (std::min)(blocksize, view.size() - startId);
1084 PointId lastId = startId + blocksize;
1085
1086 LeInserter ostream(buf.data(), buf.size());
1087 PointRef point = (const_cast<PointView&>(view)).point(0);
1088 for (PointId idx = startId; idx < lastId; idx++)
1089 {
1090 point.setPointId(idx);
1091 fillPointBuf(point, ostream);
1092 }
1093 return blocksize;
1094}
1095
1096
1097void LasWriter::doneFile()

Callers

nothing calls this directly

Calls 4

pointMethod · 0.80
setPointIdMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected