north-road / qgis-processing-r

QGIS Processing R Provider Plugin
https://north-road.github.io/qgis-processing-r/
GNU General Public License v3.0
63 stars 14 forks source link

Layer = Point Cloud #117

Open searoy opened 2 years ago

searoy commented 2 years ago

In the QGIS 3.22 Documentation Appendix D: QGIS R script syntax, section 29.4.1 Inputs there are a variety of possible options, including vector, raster, table, etc. Under 29.4.3 Syntax Summary for QGIS R scripts there is a list of a variety of input layer examples, such as vector point, multiple vector, longstring, crs, file, etc.

When I load a lidar las file in Q it loads as a point cloud with a distinct icon and tab under the data source manager, but there is no option for point cloud in the R script syntax. I use Rstudio for a lot of lidar processing and would like to leverage the flexibility of Q in creating a more user-friendly interface in a familiar environment for my other users. It would also allow me to insert Rscript tools into a larger workflow model.

What are the chances something like this already exists, or one of the more proficient Python gurus can patch it for me? Please help.

In answer to some of the first obvious questions, no, the LAStools plugin, nor the Fusion plugin do what I need, and there is no lidR plugin that I know of, and if there was, I would probably leverage that instead.

Thanks,

C

JanCaha commented 2 years ago

It can be done, but we need to identify common format, that QGIS can save the data to that R then can read. Preferably one that does not cause any significant data information loss.

gsapijaszko commented 1 year ago

Please add LAS/LAZ (using lidR https://github.com/r-lidar/lidR) as input/output formats. Similarly as raster::raster() and sf for vectors.