| 396 | { |
| 397 | |
| 398 | Expected<PointCloud> fromLas( const std::filesystem::path& file, const PointsLoadSettings& settings ) |
| 399 | { |
| 400 | try |
| 401 | { |
| 402 | lazperf::reader::named_file reader( utf8string( file ) ); |
| 403 | return process( reader, settings ); |
| 404 | } |
| 405 | catch ( const std::exception& exc ) |
| 406 | { |
| 407 | return unexpected( fmt::format( "Failed to read file: {}", exc.what() ) ); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | Expected<PointCloud> fromLas( std::istream& in, const PointsLoadSettings& settings ) |
| 412 | { |
nothing calls this directly
no test coverage detected