| 175 | |
| 176 | |
| 177 | Streamable *TileKernel::prepareReader(const std::string& filename) |
| 178 | { |
| 179 | Stage* r = &(m_manager.makeReader(filename, "")); |
| 180 | |
| 181 | if (!r) |
| 182 | throw pdal_error("Couldn't create reader for input file '" + |
| 183 | filename + "'."); |
| 184 | |
| 185 | Streamable *sr = dynamic_cast<Streamable *>(r); |
| 186 | if (!sr) |
| 187 | throw pdal_error("Driver '" + r->getName() + "' for input file '" + |
| 188 | filename + "' is not streamable."); |
| 189 | |
| 190 | sr->prepare(m_table); |
| 191 | return sr; |
| 192 | } |
| 193 | |
| 194 | |
| 195 | // We calculate the origin specially in order to avoid a "first point" |
nothing calls this directly
no test coverage detected