| 347 | } |
| 348 | |
| 349 | void 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 |