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

Method handleCatalog

io/StacReader.cpp:264–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264void StacReader::Private::handleCatalog(NL::json stacJson, std::string catPath)
265{
266 Catalog c(stacJson, catPath, *m_connector, *m_pool, m_args->validateSchema, log());
267
268 // if init returns false, the collection has no items in itself or in
269 // any sub-catalogs/collections.
270 if (c.init(*m_catFilters, m_args->rawReaderArgs, m_args->schemaUrls, true))
271 {
272 m_catList.push_back(c.id());
273 //iteracted
274 handleNested(c);
275 //collect items from root
276 for (Item& item: c.items())
277 addItem(item);
278 }
279
280 printErrors(c);
281}
282
283void StacReader::Private::handleCollection(NL::json stacJson, std::string colPath)
284{

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