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

Method handleNested

io/StacReader.cpp:246–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void StacReader::Private::handleNested(Catalog& c)
247{
248 auto& subs = c.subs();
249 for (auto& sub: subs)
250 {
251 //add sub col/cat ids to list for metadata bookkeeping
252 if (sub->type() == GroupType::catalog)
253 m_catList.push_back(sub->id());
254 else if (sub->type() == GroupType::collection)
255 m_colList.push_back(sub->id());
256
257 //collect items from sub catalogs
258 for (Item& item: sub->items())
259 addItem(item);
260 }
261}
262
263
264void StacReader::Private::handleCatalog(NL::json stacJson, std::string catPath)

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.80
typeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected