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

Method parse

plugins/e57/io/Utils.cpp:308–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void 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

Callers 2

addDimensionsMethod · 0.45
addDimensionsMethod · 0.45

Calls 3

trimFunction · 0.85
typeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected