| Crates.io | randlas |
| lib.rs | randlas |
| version | 0.1.1 |
| created_at | 2025-03-16 15:34:24.325335+00 |
| updated_at | 2025-03-16 15:34:24.325335+00 |
| description | A program to generate random lidar files. |
| homepage | |
| repository | https://github.com/asub-sandwich/randlas |
| max_upload_size | |
| id | 1594503 |
| size | 46,078 |
A tool to generate completely random lidar files from the command line, written completely in rust.
You can choose the LAS version and format, set the lateral extent and z-range, and the percent of points classified as ground. This was developed to aid in testing of various lidar formats and compression efficiency tests.
Usage: randlas [OPTIONS] <OUTPUT>
Arguments:
<OUTPUT> Output filename. Format is determined by extension
Options:
-n, --num-points <NUM_POINTS> Number of points in cloud [default: 10000]
-m, --minor <MINOR> LAS Minor Version [default: 4]
-f, --format <FORMAT> LAS Point Format (0 - 10) [default: 1]
-g, --ground <GROUND> Percent (0 - 100) of points classified as Ground [default: 90]
-s, --surface Make Z-values surface-like
--hills <HILLS> Number of hills, otherwise random. Used with surface
-x, --x <X> <X> W-E extent (meters) [default: 0 1000]
-y, --y <Y> <Y> S-N extent (meters) [default: 0 1000]
-z, --z <Z> <Z> Z extent (meters) [default: 0 100]
cargo install randlas
git clone https://asub-sandwich/randlas.git
cd randlas
cargo build --release
Currently, only LAS and LAZ files can be generated. I would like to add ASCII and G-Zipped ASCII files, but those are currently being made by using RapidLasso's las2txt(64) binary after generation of las files.
More control over surface generation
Binary is not yet portable due to the use of the rand crate.
This generates lidar files similar to what would be taken with Aerial Lidar Scanners, that is, evenly distributed across an area. Simulation of terrestrial lidar scanners would be interesting.
My programming is almost entirely self taught; if you find an issue or find that I have violated a custom, please let me know!
Adam Subora adam.subora@proton.me
0.1.1
0.1.0
This project is licensed under the MIT License - see the LICENSE.md file for details