You are here: Common Commands > Common LiDAR commands

Common LiDAR commands

Lossless compression

This command compresses a LAS point cloud to MrSID Generation 4 using lossless compression:

mrsidgeoencoder -i foo.las -o foo.sid ‑of mg4 ‑lossless

Setting a compression ratio

This command compresses a LAS point cloud to MrSID Generation 4 using a 15:1 compression ratio:

mrsidgeoencoder -i foo.las ‑o foo.sid ‑of mg4 ‑cr 15

Compressing a text file

This command compresses a text file and maps the columns in the text file to fields in the output point cloud:

mrsidgeoencoder -i in.txt ‑o out.sid ‑tfc txyzi

The file above contains the following values: the GPS time, the X values, the Y values, and the intensity.

Cropping

This command crops a LAS point cloud to MrSID Generation 4 to a rectangle defined by the upper left and lower right corners:

mrsidgeoencoder -i foo.las -o foo_cropped.sid -cropulxy 580677 4504756 -croplrxy 580791 4504635

Reprojecting a point cloud

This command reprojects a LAS point cloud to MrSID Generation 4 from the original CRS (NAD83 / UTM zone 18N, 26918) to WGS 84 (4326).

mrsidgeoencoder -i foo.las -o foo_to4326.sid -fromepsg 26918 -toepsg 4326

Creating a flat mosaic

This command uses a mosaic list file to create a LiDAR point cloud mosaic:

mrsidgeoencoder -i mosaic.list ‑mos ‑o mosaic.sid

The file with a .list extension is the mosaic list file.

Here is a sample mosaic list file for a given set of georeferenced LAS files: