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

Method handleCollection

io/StacReader.cpp:283–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void StacReader::Private::handleCollection(NL::json stacJson, std::string colPath)
284{
285 Collection c(stacJson, colPath, *m_connector, *m_pool, m_args->validateSchema, log());
286
287 // if init returns false, the collection has no items in itself or in
288 // any sub-catalogs/collections.
289 if (c.init(*m_colFilters, m_args->rawReaderArgs, m_args->schemaUrls, true))
290 {
291 m_colList.push_back(c.id());
292 handleNested(c);
293 //collect items from root
294 for (Item& item: c.items())
295 addItem(item);
296 }
297
298 printErrors(c);
299}
300
301void StacReader::Private::handleItemCollection(NL::json stacJson, std::string icPath)
302{

Callers 1

initializeMethod · 0.80

Calls 4

itemsMethod · 0.80
logFunction · 0.50
initMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected