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

Method dumpSummary

pdal/QuickInfo.hpp:63–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 { return m_valid; }
62
63 MetadataNode dumpSummary() const
64 {
65 MetadataNode summary;
66 summary.add("num_points", this->m_pointCount);
67 if (this->m_srs.valid())
68 {
69 MetadataNode srs = this->m_srs.toMetadata();
70 summary.add(srs);
71 }
72 if (this->m_bounds.valid())
73 {
74 MetadataNode bounds = Utils::toMetadata(this->m_bounds);
75 summary.add(bounds.clone("bounds"));
76 }
77
78 std::string dims;
79 auto di = this->m_dimNames.begin();
80 while (di != this->m_dimNames.end())
81 {
82 dims += *di;
83 ++di;
84 if (di != this->m_dimNames.end())
85 dims += ", ";
86 }
87 if (dims.size())
88 summary.add("dimensions", dims);
89
90 if (!this->m_metadata.empty() && this->m_metadata.valid())
91 {
92 summary.add(this->m_metadata.clone("metadata"));
93 }
94
95 return summary;
96 }
97};
98
99} // namespace pdal

Callers 1

runMethod · 0.80

Calls 8

toMetadataFunction · 0.85
addMethod · 0.45
validMethod · 0.45
toMetadataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected