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

Method inspect

io/StacReader.cpp:491–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491QuickInfo StacReader::inspect()
492{
493 QuickInfo qi;
494
495 initialize();
496
497 for (auto& reader: m_p->m_readerList)
498 {
499 QuickInfo readerQi = reader->preview();
500 qi.m_bounds.grow(readerQi.m_bounds);
501 qi.m_pointCount += readerQi.m_pointCount;
502
503 for (auto& readerDim: readerQi.m_dimNames)
504 {
505 bool exists = false;
506 for (auto& dim: qi.m_dimNames)
507 if (dim == readerDim)
508 exists = true;
509 if (!exists)
510 qi.m_dimNames.push_back(readerDim);
511 }
512 }
513
514 for (auto& id: m_p->m_catList)
515 m_metadata.addList("catalog_ids", id);
516
517 for (auto& id: m_p->m_colList)
518 m_metadata.addList("collection_ids", id);
519
520 for (auto& id: m_p->m_itemList)
521 {
522 m_metadata.addList("ids", id);
523 m_metadata.addList("item_ids", id);
524 }
525
526 qi.m_metadata = m_metadata;
527
528 qi.m_valid = true;
529 return qi;
530}
531
532
533point_count_t StacReader::read(PointViewPtr view, point_count_t num)

Callers

nothing calls this directly

Calls 3

initializeFunction · 0.85
previewMethod · 0.45
growMethod · 0.45

Tested by

no test coverage detected