Skip to main content

read

Function read 

Source
pub fn read(text: &str) -> Result<FlightLog, LogError>
Expand description

Reads a KML file’s tracks into a flight record.

§Errors

LogError::Syntax if the XML isn’t well formed, declares a document type, nests elements deeper than MAX_DEPTH, or holds more than MAX_NODES nodes over its documents; LogError::NotThisFormat if its root element isn’t kml; LogError::NoData if it holds no point.