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

Method updateSchema

pdal/DbReader.cpp:69–79  ·  view source on GitHub ↗

If we start reading from a DB block with a different schema, reflect that in the dimensions and size.

Source from the content-addressed store, hash-verified

67// If we start reading from a DB block with a different schema, reflect that
68// in the dimensions and size.
69void DbReader::updateSchema(const XMLSchema& schema)
70{
71 m_dims = schema.xmlDims();
72 m_orientation = schema.orientation();
73 m_packedPointSize = 0;
74 for (auto di = m_dims.begin(); di != m_dims.end(); ++di)
75 {
76 di->m_dimType.m_id = m_layout->findDim(di->m_name);
77 m_packedPointSize += Dimension::size(di->m_dimType.m_type);
78 }
79}
80
81
82DimTypeList DbReader::dbDimTypes() const

Callers

nothing calls this directly

Calls 4

sizeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
findDimMethod · 0.45

Tested by

no test coverage detected