[R-sig-Geo] Extending sp's SpatialPoints with altitude information
Eamon Caddigan
eamon.caddigan at gmail.com
Fri Apr 15 21:06:04 CEST 2016
On Thu, Apr 14, 2016 at 9:30 PM, Michael Sumner <mdsumner at gmail.com> wrote:
>
> On Fri, 15 Apr 2016 at 10:36 Eamon Caddigan <eamon.caddigan at gmail.com>
> wrote:
>
>> Hi all,
>>
>> I am looking to extend the SpatialPoints and SpatialPointsDataFrame
>> classes
>> to include altitude information. Somebody recommended I check in with this
>> group for pointers before getting too far along on this.
>>
>>
> It's possible for Points in sp, but not for polygons or lines.
>
> library(sp)
> x <- matrix(rnorm(27), ncol = 3)
> SpatialPoints(x)
>
> But, the general support outside this in sp is very limited once you break
> out of the plane.
>
Thanks Mike!
I had no idea that coordinates() handled three-dimensional matrices
already. In that case, it looks like I don't have to do anything at all
(for now).
> I'm working on tools to make this much easier, and to translate from sp to
> other forms and back.
>
I look forward to seeing what comes out of this!
-Eamon
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list