| 306 | } |
| 307 | |
| 308 | void ExtraDims::parse(pdal::StringList dimList) |
| 309 | { |
| 310 | for (auto& dim : dimList) |
| 311 | { |
| 312 | StringList s = Utils::split2(dim, '='); |
| 313 | if (s.size() != 2) |
| 314 | throw pdal_error("Invalid extra dimension specified: '" + dim + |
| 315 | "'. Need <dimension>=<type>.."); |
| 316 | Utils::trim(s[0]); |
| 317 | Utils::trim(s[1]); |
| 318 | Dimension::Type type = Dimension::type(s[1]); |
| 319 | if (type == Dimension::Type::None) |
| 320 | { |
| 321 | throw pdal_error("Invalid extra dimension type specified: '" + dim + |
| 322 | "'. Need <dimension>=<type>. "); |
| 323 | |
| 324 | } |
| 325 | addDim(s[0], type); |
| 326 | } |
| 327 | } |
| 328 | } // namespace e57plugin |
| 329 | } // namespace pdal |
| 330 |
no test coverage detected