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

Method addDimensions

filters/FerryFilter.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88void FerryFilter::addDimensions(PointLayoutPtr layout)
89{
90 for (auto& info : m_dims)
91 {
92 const Dimension::Id fromId = layout->findDim(info.m_fromName);
93 // Dimensions being created with the "=>Dim" syntax won't
94 // be in the layout, so we have to assign a default type.
95 Dimension::Type fromType = layout->dimType(fromId);
96 if (fromType == Dimension::Type::None)
97 fromType = Dimension::Type::Double;
98
99 info.m_toId = layout->registerOrAssignDim(info.m_toName, fromType);
100 }
101}
102
103
104void FerryFilter::prepared(PointTableRef table)

Callers

nothing calls this directly

Calls 3

registerOrAssignDimMethod · 0.80
findDimMethod · 0.45
dimTypeMethod · 0.45

Tested by

no test coverage detected