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

Method addDimensions

io/TextReader.cpp:233–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231
232
233void TextReader::addDimensions(PointLayoutPtr layout)
234{
235 m_dims.clear();
236 for (auto name : m_dimNames)
237 {
238 Utils::trim(name);
239 Dimension::Id id = layout->registerOrAssignDim(name,
240 Dimension::Type::Double);
241 if (Utils::contains(m_dims, id) && id != pdal::Dimension::Id::Unknown)
242 throwError("Duplicate dimension '" + name +
243 "' detected in input file '" + m_filename + "'.");
244 m_dims.push_back(id);
245 }
246}
247
248
249void TextReader::ready(PointTableRef table)

Callers

nothing calls this directly

Calls 4

trimFunction · 0.85
registerOrAssignDimMethod · 0.80
containsFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected