示例#1
0
文件: LazPerfTest.cpp 项目: PDAL/PDAL
std::vector<char> getBytes(PointViewPtr view)
{
    std::vector<char> bytes(view->pointSize() * view->size());
    DimTypeList dimTypes = view->dimTypes();

    char *p = bytes.data();
    for (PointId idx = 0; idx < view->size(); ++idx)
    {
        view->getPackedPoint(dimTypes, idx, p);
        p += view->pointSize();
    }
    return bytes;
}
示例#2
0
 Checker(PointViewPtr v) : m_cnt(0), m_view(v),
     m_bulkBuf(v->pointSize()), m_buf(v->pointSize()),
     m_dims(v->dimTypes())
     {}