Closed mkieser closed 6 years ago
I'm really sorry but I have to repeat myself. The doc is very clear:
The function returns NULL.
So yes lnorm
is NULL. It is not a bug it is a feature.
However lidar
is normalized. Try plot(lidar)
(the topogrphy being relatively flat this is not obvious with this dataset)
plot(lidar) error: xp_attach_gl_context returned: 2 X Error of failed request: 0 Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 26 (X_GLXMakeContextCurrent) Serial number of failed request: 709 Current serial number in output stream: 709
That may be a real bug but it is really weird. I have never seen such bug in my whole R carrier. I need a reproducible example of your code as well as the original data (but if it is drawno
I already have it).
What Syst.setenv(TZ = 'MST')
means ?
Ok I googled error: xp_attach_gl_context returned: 2
and this sound to be OSX specific.
But your screen shoot shows that plot
works isn't it ?
TZ = 'MST' is just a reoccurring timezone issue with 'sf', trying to resolve separately
I think I got it:
dtm = grid_terrain(lidar, method = "kriging", k = 10L)
lasnormalize(lidar, dtm)
Yes must be an OS thing R crashes when I use plot(lidar)
, going to try Docker instead.
Ok.
Does example(rgl)
works. If yes this is a bug in lidR
if no this is a bug in rgl
with OSX and openGL
I've followed the doc to load a lidar dataset, build a dtm, and then normalize the lidar dataset based on the dtm but the result is "NULL". screen capture