Skip to content

remove buffer after binding 2 (points) dataframe #629

Answered by Jean-Romain
jerB73 asked this question in Q&A
Discussion options

You must be logged in to vote

Something like that (did not test)

test=function(las, MatriceFocal) {
  UseMethod("test",las)
}


test.LAScluster<-function(las, MatriceFocal)
{
  # Get the bbox of the chunk 
  # (it is the bbox without the buffer)
  ext <- st_bbox(las)
  ybottom <- ext$ymin
  ytop    <- ext$ymax
  xleft   <- ext$xmin
  xright  <- ext$xmax
  
  # Read the chunks
  las <- readLAS(las)
  if (is.empty(las)) return(NULL)
  
  # Keep only the ground.
  # (I don't know why but it is you method)
  las <- filter_ground(las)
  
  # Remove the buffer which anyway is going to be lost
  las$buffer = NULL
  
  # Making reference soil from ground points
  SoilRef <- SoilRef_function(las, MatriceFocal)
  
  # Transform…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jerB73
Comment options

@jerB73
Comment options

@Jean-Romain
Comment options

Answer selected by jerB73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants