Author: Thomas DuBuisson Copyright: Thomas DuBuisson License: BSD3
- type KML = Element
- trailToKML :: Coordinate a => String -> Trail a -> KML
- pointsToKML :: Coordinate a => String -> [a] -> [String] -> KML
- kmlToString :: KML -> String
KML Operations (Open format used by GoogleEarth, among others)
The KML type and operations might be moved into a Data.KML module in the future
trailToKML :: Coordinate a => String -> Trail a -> KMLSource
converts a given set of coordinates to a trail in KML format. Useful for saving as a file.
pointsToKML :: Coordinate a => String -> [a] -> [String] -> KMLSource
converts a given set of coordinates to points in KML format. Useful for saving as a file.
kmlToString :: KML -> StringSource
Converts the KML elements to a string and prepends the proper XML header, thus making it the correct format for saving as a file and opening it with other programs such as GoogleEarth.