| 310 | } |
| 311 | |
| 312 | void StacReader::Private::printErrors(Catalog& c) |
| 313 | { |
| 314 | ErrorList errors = c.errors(); |
| 315 | if (errors.size()) |
| 316 | { |
| 317 | for (auto& p: errors) |
| 318 | { |
| 319 | log()->get(LogLevel::Error) << "Failure fetching '" << p.first |
| 320 | << "' with error '" << p.second << "'\n"; |
| 321 | } |
| 322 | throw pdal_error("Errors found during initial processing of the Catalog."); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | std::string listStr(std::string key, std::vector<RegEx> ids) |
| 327 | { |