| 262 | |
| 263 | |
| 264 | void 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 | |
| 283 | void StacReader::Private::handleCollection(NL::json stacJson, std::string colPath) |
| 284 | { |
no test coverage detected