Skip to main content

kml

Function kml 

Source
pub fn kml(
    track: &[TrackPoint],
    summary: &FlightSummary,
    name: &str,
) -> Result<String, SimError>
Expand description

The path and the landings as a KML 2.2 document (OGC 07-147r2) named name: a LineString of longitude,latitude,height above mean sea level with altitudeMode absolute, and a ground-clamped Point per landing of summary. An XML comment after the declaration names the program that wrote it, <!-- hpr-sim 0.1.0 · FS · SW · TOOL 005 --> (hpr_core::tool::stamp).

§Errors

SimError::Unsupported for a track of fewer than two points or a name with a control character XML forbids; SimError::Domain for a coordinate that isn’t finite.