Skip to content

Instantly share code, notes, and snippets.

@shnhrtkyk
Last active July 8, 2019 02:20
Show Gist options
  • Save shnhrtkyk/537bae6280c498ba9df438f1ca65898e to your computer and use it in GitHub Desktop.
Save shnhrtkyk/537bae6280c498ba9df438f1ca65898e to your computer and use it in GitHub Desktop.
FWLiDARのlas形式を一括でtxtに変換する
#!/bin/sh
dir_path="/PATH/*"
dirs=`find $dir_path -maxdepth 2 -type f -name *.las`
for dir in $dirs;
do
echo $dir
echo ${dir%.*}.txt
# ここから実行処理を記述
/path/to/lastools/las2txt -i $dir -o ${dir%.*}.txt -parse xyzWV
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment