Skip to main content

kml_with

Function kml_with 

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

The path and the landings as kml() writes them, with description as the Document’s description (OGC 07-147r2 section 9.1.3.6, after its name), such as the motor catalog’s date and how far to trust the path: a map shows it when the file is opened. It is escaped as XML text, but map programs such as Google Earth show a description as HTML, so text from someone else should not be passed through unchecked. An empty description writes none, as kml() does.

§Errors

As kml(); also SimError::Unsupported for a description with a control character XML forbids.