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

Method read

plugins/hdf/io/HdfReader.cpp:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83point_count_t HdfReader::read(PointViewPtr view, point_count_t count)
84{
85 PointId startId = view->size();
86 point_count_t remaining = m_hdf5Handler->getNumPoints() - m_index;
87 count = (std::min)(count, remaining);
88 PointId nextId = startId;
89
90 for(uint64_t pi = 0; pi < m_hdf5Handler->getNumPoints(); pi++) {
91 for(hdf5::DimInfo& dim : m_hdf5Handler->getDimensions()) {
92 uint8_t *p = dim.getValue(pi);
93 view->setField(dim.getId(), dim.getPdalType(), nextId, (void*) p);
94 }
95 m_index++;
96 nextId++;
97 }
98
99 return count;
100}
101
102
103bool HdfReader::processOne(PointRef& point)

Callers 1

getValueMethod · 0.45

Calls 7

getValueMethod · 0.80
getIdMethod · 0.80
getPdalTypeMethod · 0.80
sizeMethod · 0.45
getNumPointsMethod · 0.45
getDimensionsMethod · 0.45
setFieldMethod · 0.45

Tested by

no test coverage detected