Skip to content
Back to formatted view

Raw Message

Message-ID: <CAD=p34DDG-W4Rbpy25EyumNkR7aQOftaW0wmbcBTfdOtvuDY7Q@mail.gmail.com>
Date: 2016-04-15T19:06:04Z
From: Eamon Caddigan
Subject: Extending sp's SpatialPoints with altitude information
In-Reply-To: <CAAcGz98Zw9DgQTF9PRHVwu_b8smOubSBhMsxJJRybz+2WCbLxA@mail.gmail.com>

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]]