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

Method toMetadata

pdal/PointView.cpp:152–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152MetadataNode PointView::toMetadata() const
153{
154 MetadataNode node;
155
156 const Dimension::IdList& dims = layout()->dims();
157
158 for (PointId idx = 0; idx < size(); idx++)
159 {
160 MetadataNode pointnode = node.add(std::to_string(idx));
161 for (auto di = dims.begin(); di != dims.end(); ++di)
162 {
163 double v = getFieldAs<double>(*di, idx);
164 pointnode.add(layout()->dimName(*di), v);
165 }
166 }
167 return node;
168}
169
170
171TriangularMesh *PointView::createMesh(const std::string& name)

Callers

nothing calls this directly

Calls 6

dimNameMethod · 0.80
layoutFunction · 0.70
sizeFunction · 0.70
addMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected