<div dir="ltr">One last post to follow up - I am using SpatialMultiPointsDataFrame and it is working; actually, it is pretty much what I was hoping to find. I posted a small patch to R-sig-geo which Edzer checked in. I also have a patch to the R leaflet package to make it work with SMPDF; I have given that to the leaflet devs.<div><br></div><div>Thanks for your help and apologies for butting in here. </div><div><br></div><div>Kent</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 10:04 PM, Kent Johnson <span dir="ltr"><<a href="mailto:kent3737@gmail.com" target="_blank">kent3737@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Mon, Nov 30, 2015 at 2:44 AM, Roger Bivand <span dir="ltr"><<a href="mailto:Roger.Bivand@nhh.no" target="_blank">Roger.Bivand@nhh.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Mon, 30 Nov 2015, Kent Johnson wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am working with spatial line data which has three axes - lat, lon and<br>
altitude and metadata for each line. I would love to have something like a<br>
SpatialLines3DDataFrame.<br>
</blockquote>
<br></span>
Why? Love isn't appropriate here - you need a use case. </blockquote><div><br></div></span><div>OK. I would find it helpful to have a data structure to represent tracks in three dimensions with associated metadata. My data is airplane tracks from KML files and direct recording of flight data. Some useful operations:</div><div>- Plot the tracks on a map using leaflet.</div><div>- Find distance from each point in the track to a fixed point on the ground</div><div>- Plot distance from a fixed point vs altitude</div><div>- Find the point of closest approach to a fixed point on the ground</div><div>- Find the altitude at point of closest approach</div><div>- Associate attributes with each track such as flight number, departure time, nearest waypoint, etc.</div><div>All of the above using collections of 200-300 tracks.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you looked at SpatialMultiPoints (as altitude could be an attribute at a line segent end point, or a coordinate)?</blockquote><div><br></div></span><div>SpatialMultiPointsDataFrame looks promising, thanks for the pointer. </div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Please use R-sig-geo for all contact - this list is only used by developers.<br></blockquote><div><br></div></span><div>OK I will use that list in the future.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Kent </div></font></span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Roger<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
Kent Johnson<br>
<br><span><font color="#888888">
</font></span></blockquote><span><font color="#888888">
<br>
-- <br>
Roger Bivand<br>
Department of Economics, Norwegian School of Economics,<br>
Helleveien 30, N-5045 Bergen, Norway.<br>
voice: <a href="tel:%2B47%2055%2095%2093%2055" value="+4755959355" target="_blank">+47 55 95 93 55</a>; fax <a href="tel:%2B47%2055%2095%2091%2000" value="+4755959100" target="_blank">+47 55 95 91 00</a><br>
e-mail: <a href="mailto:Roger.Bivand@nhh.no" target="_blank">Roger.Bivand@nhh.no</a><br>
<br>
</font></span></blockquote></span></div><br></div></div>
</blockquote></div><br></div>