Is there any R data structure that supports spatial lines that include height information? I'm looking for something like
SpatialLinesDataFrame with support for altitude in the lines. Associating a time with each point would be nice but not essential.
My data is airplane flight tracks. I want to be able to do spatial analysis such as finding the ground distance and altitude at the closest point of approach to a fixed point on the ground, and visualizations such as maps where the segments are coloured by altitude.
The data is supplied as KML files. Currently I am using
rgdal::readOGR to read the lat/lon data and metadata, and
maptools::getKMLcoordinates to read the same data as a data.frame containing lat/lon/altitude. This works but it is awkward to use two data structures to contain pieces of the same data.
(I originally posted this on StackOverflow but no answers there...)