| 281 | } |
| 282 | |
| 283 | void 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 | |
| 301 | void StacReader::Private::handleItemCollection(NL::json stacJson, std::string icPath) |
| 302 | { |
no test coverage detected