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

Method ready

examples/writing-writer/MyWriter.cpp:56–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56 void MyWriter::ready(PointTableRef table)
57 {
58 m_stream->precision(m_precision);
59 *m_stream << std::fixed;
60
61 Dimension::Id d = table.layout()->findDim(m_datafield);
62 if (d == Dimension::Id::Unknown)
63 {
64 std::ostringstream oss;
65 oss << "Dimension not found with name '" << m_datafield << "'";
66 throw pdal_error(oss.str());
67 }
68
69 m_dataDim = d;
70
71 *m_stream << "#X:Y:Z:MyData" << m_newline;
72 }
73
74
75 void MyWriter::write(PointViewPtr view)

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
precisionMethod · 0.45
findDimMethod · 0.45

Tested by

no test coverage detected