Comment by JRR on Custom function works only on some parent functions of...
Please report a reproducible example on the github repo github.com/r-lidar/lidR
View ArticleComment by JRR on Efficiently find duplicated vectors in C++
Does this answer your question? What's the most efficient way to erase duplicates and sort a vector?
View ArticleComment by JRR on lidr LAScatalog manual classification
The filter commands are from LASlib that is used internally to read and write LAS files
View ArticleComment by JRR on How do I calculate rumple index for grid plots (e.g.30x30m)...
It is not possible. You must write your own code. lidR is designed to process point clouds not rasters
View ArticleComment by JRR on How to homogenize points using lidR to reduce streaking...
Your code looks correct. How did you build the density map? I do not understand the density map you produced. I see densities ranging from 0 to 15 which mean that the decimation failed? Please be more...
View ArticleComment by JRR on Is the order of an unordered map always the same for a...
the key is an int in this case
View ArticleComment by JRR on Is the order of an unordered map always the same for a...
Assuming that I'm using my own hash. Would the order be the same for each compiler?
View ArticleComment by JRR on Use outside ground points to inform ground classification...
You have 3 available algorithms from the literature in lidR. They may or may not suit your needs. Maybe you need to tune the parameters. The best way to understand how to tune the parameters is to read...
View ArticleComment by JRR on lidR calculation or Rumple Index from points failing (and...
Does it fails with all dataset or only your dataset? in the first case please make a reproducible example including data.
View ArticleComment by JRR on Manually load large raster to perform lidR::locate_trees()
If you think your raster can fit in memory you can simply multiply by 1. canopy = canopy*1
View ArticleAnswer by JRR for How can I minimize the size of the installation of a R package
Dirk EddelBuettel wrote two blog posts in 2017 that are hard to summarize here. R packages are big but it does not come from the documentation or the source code. It comes from the fact that binaries...
View ArticleHow to embed an rgl snapshot in Rmarkdown package vignette
I created an R vignette for my package. This vignette embed an interactive rgl figure with webGL.---title: "title"output: rmarkdown::html_vignettevignette: > %\VignetteIndexEntry{title}...
View ArticleAnswer by JRR for Can't install lidR package on linux Redhat
lidR uses boost geometry which requires in its latest version to compile in C++14. gcc 4.8 is pretty old and does not support full C++14 standard. Only pre-standard C++14 with c++1y. See Compile...
View ArticleAnswer by JRR for Compute eigenvalues for large point clouds as quickly as...
The problem of point_metrics() is that it calls user's R code millions of times and this have a cost. Moreover it cannot be safely multithreaded. The function is good for prototyping but for production...
View ArticleAnswer by JRR for Plot a 2D Canopy Height Model (CHM) line
library(lidR)library(dplyr)library(ggplot2)LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")las = readLAS(LASfile, select = "xyz")p1 <- c(684800, y = 5017800)p2 <- c(684900, y...
View ArticleDelaunay from Voronoi with boost: missing triangle with non-integral point...
Following this two resources:Boost basic tutorialSO QuestionI wrote a Delaunay triangulation with boost. It works fine if the points coordinates are integral (I generated several random tests and I did...
View ArticleAnswer by JRR for Non-zero exit status package installation error on RStudio...
gdal (and friends) are not installedsudo add-apt-repository ppa:ubuntugis/ubuntugis-unstablesudo apt-get updatesudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
View ArticleAnswer by JRR for How to get a circular subset of a las-dataset with specific...
I can reproduce your issue with example dataLASfile <- system.file("extdata", "Megaplot.laz", package="lidR")las = lidR::readLAS(LASfile)las_ctpt <-...
View ArticleAnswer by JRR for How to convert lidar format las to data.frame?
If you do not want to play with lidR and want to use bare bone data.frame simply use rlas instead of lidR.library(rlas)read.las("C:/1/078-638.las")
View ArticleQNetworkAccessManager does not work on windows with https
I'm trying to download files from a https url with my application using the following code in Qt5. This works perfectly as I want on Linux but with the Windows version content is always empty and...
View Article