| 191 | } |
| 192 | |
| 193 | FileSpec extractFilename(NL::json& node) |
| 194 | { |
| 195 | FileSpec spec; |
| 196 | |
| 197 | auto it = node.find("filename"); |
| 198 | if (it == node.end()) |
| 199 | return spec; |
| 200 | |
| 201 | Utils::StatusWithReason status = FileSpecHelper::parse(spec, *it); |
| 202 | if (!status) |
| 203 | throw pdal_error(status.what()); |
| 204 | node.erase(it); |
| 205 | return spec; |
| 206 | } |
| 207 | |
| 208 | std::vector<Stage *> extractInputs(NL::json& node, TagMap& tags) |
| 209 | { |