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

Method addDimensions

plugins/tiledb/io/TileDBReader.cpp:229–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void TileDBReader::addDimensions(PointLayoutPtr layout)
230{
231 for (const auto& dim : m_array->schema().domain().dimensions())
232 addDim(layout, dim.name(), dim.type(), true);
233
234 for (const auto& [attrName, attr] : m_array->schema().attributes())
235 {
236 // Check for special packed bit-field dimension.
237 if (attrName == "BitFields")
238 {
239 if (attr.type() != TILEDB_UINT16)
240 {
241 if (m_args->m_strict)
242 throwError("Cannot add type '" + attrName +
243 "'. Unexpected type not equal to uint16_t.");
244 else
245 std::cerr << "Skipping over attribute '" << attrName
246 << "' with unexpected type!\n";
247 }
248 m_dims.emplace_back(new BitFieldsBuffer(attrName, layout));
249 }
250 else
251 addDim(layout, attrName, attr.type(), m_args->m_strict);
252 }
253}
254
255void TileDBReader::ready(PointTableRef)
256{

Callers

nothing calls this directly

Calls 2

nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected