1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Interface into Riegl's RiVLib.
//!
//! # Examples
//!
//! Use a `Reader` to extract data from rxp files:
//!
//! ```
//! use rivlib::Reader;
//! let reader = Reader::from_path("data/scan.rxp");
//! ```
//!
//! Use `.points()` to get an iterator over the file's points:
//!
//! ```
//! let mut reader = rivlib::Reader::from_path("data/scan.rxp");
//! let points = reader.points().unwrap().filter_map(|p| p.ok()).collect::<Vec<_>>();
//! ```
//!
//! Use `.inclinations()` to get an iterator over the file's inclination readings:
//!
//! ```
//! let mut reader = rivlib::Reader::from_path("data/scan.rxp");
//! let inclinations = reader.inclinations().unwrap().filter_map(|i| i.ok()).collect::<Vec<_>>();
//! ```
extern crate failure;
extern crate scanifc_sys;
extern crate scanlib;
pub use Inclination;
pub use ;
pub use Reader;