Skip to content
/ lg Public

lg is a command line tool to filter asprs's las and laz files using thier header.

Notifications You must be signed in to change notification settings

MBunel/lg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LasGrep (lg)

lg is a command line tool to filter asprs's las and laz files thanks to their header.

The main use of this tool is to be combined with other command line tools (cp, mv, rm, wc, etc.)

Type lg --help for the help.

Some examples

Get tiles with type 1 points :

lg --point-format 1 ./las_folder/

Get tile with less 100 000 points :

lg --point-number "<100000" ./las_folder/

Get laz files that intersects a wkt :

# The CRS of wkt must be the same of the tile
lg --extensions=laz --wkt="POINT(10 10)" --intersects ./las_folder/

Copy the files selected in a folder :

# Linux version
lg --point-format 1 ./las_folder/ | xargs cp -t /destination/folder/
# Windows version (Power shell)
lg .\las_folder | ForEach {cp $_.Replace("'","")  \destination\folder\}

About

lg is a command line tool to filter asprs's las and laz files using thier header.

Topics

Resources

Stars

Watchers

Forks

Languages