Skip to content
Prev 24270 / 29559 Next

Extending sp's SpatialPoints with altitude information

On Fri, 15 Apr 2016 at 10:36 Eamon Caddigan <eamon.caddigan at gmail.com>
wrote:
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.

I'm working on tools to make this much easier, and to translate from sp to
other forms and back. If you'd like to expand on what you're doing I'm
happy to help. It's possible to do this easily for lines and polygons, and
translate to rgl and ggplot2 and other forms, but it's best to use
relational tables IMO and that gets you outside the playing field pretty
quickly.

See here for some early thoughts, it's still very much in-progress and
design:

http://mdsumner.github.io/2015/12/28/gis3d.html

http://mdsumner.github.io/2016/03/03/polygons-R.html

Cheers, Mike.