Function survex_rs::read::load_from_path
source · pub fn load_from_path(path: PathBuf) -> Result<SurveyData, Box<dyn Error>>
Expand description
Create a SurveyData
instance from a Survex file.
The path to the Survex file will be passed to the binding to the Survex C library, which will
open and read the file. The data within the file will be iterated over to build a list of
Stations and a graph of connections between them. The resulting
SurveyData
instance will be returned.