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

Method setAllowedDims

pdal/PointLayout.cpp:349–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void PointLayout::setAllowedDims(StringList dimNames)
350{
351 if (dimNames.empty())
352 return;
353
354 for (std::string& s : dimNames)
355 s = Utils::toupper(s);
356 for (const std::string& xyz : StringList { "X", "Y", "Z" })
357 if (!Utils::contains(dimNames, xyz))
358 dimNames.push_back(xyz);
359 m_allowedDimNames = dimNames;
360}
361
362} // namespace pdal
363

Callers 3

TESTFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 3

toupperFunction · 0.85
containsFunction · 0.50
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.36