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

Method toMetadata

pdal/PointLayout.cpp:331–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331MetadataNode PointLayout::toMetadata() const
332{
333
334 MetadataNode root("schema");
335
336 for (const auto& id : dims())
337 {
338 MetadataNode dim("dimensions");
339 dim.add("name", dimName(id));
340 Dimension::Type t = dimType(id);
341 dim.add("type", Dimension::toName(Dimension::base(t)));
342 dim.add("size", dimSize(id));
343 root.addList(dim);
344 }
345
346 return root;
347}
348
349void PointLayout::setAllowedDims(StringList dimNames)
350{

Callers

nothing calls this directly

Calls 7

dimsFunction · 0.85
dimNameFunction · 0.85
dimTypeFunction · 0.85
toNameFunction · 0.85
baseFunction · 0.85
dimSizeFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected