[R-sig-Geo] DEM plot3D and overlay an aerial image

Mathieu Rajerison mathieu.rajerison at gmail.com
Mon Oct 3 11:38:24 CEST 2016


Hi R-List,


I have a DEM on one hand, and on the other hand, I have an RGB aerial image

I tried rasterVis and plot3D function, but I didn't find how to use the
colors of my RGB aerial image.

For the moment, I used rgl instead although it doesn't seem very
appropriate for georeferenced data..

Here's the RGL code :

gruissan =
stack("../MAISON/DATA/geo/raster/bdortho_marseille/marseille.tif")

r = values(gruissan[[1]])/255
g = values(gruissan[[2]])/255
b = values(gruissan[[3]])/255
col = rgb(r, g, b)

library(rgl)
persp3d(1:nrow(mnt), 1:ncol(mnt), values(mnt), col=col)

Best,

Mathieu


ᐧ

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list