| 1077 | |
| 1078 | |
| 1079 | point_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 | |
| 1097 | void LasWriter::doneFile() |
nothing calls this directly
no test coverage detected