Skip to content

Instantly share code, notes, and snippets.

@shnhrtkyk
Created July 9, 2019 05:15
Show Gist options
  • Save shnhrtkyk/8faa67723c25b0bbcb947b6172aa5c69 to your computer and use it in GitHub Desktop.
Save shnhrtkyk/8faa67723c25b0bbcb947b6172aa5c69 to your computer and use it in GitHub Desktop.
las形式のx, y, z, 強度,リターンナンバー,クラスの情報をtxtに変換
@echo off
for %%a in (G:\path\to\*.las) do (
call :sub "%%a"
)
goto :EOF
:sub
set BEFORE=%~1
set FILENAME=%~n1
set EXTENSION=%~x1
set AFTER=%BEFORE:~3%%EXTENSION%
echo "%BEFORE:~-0,-4%.txt"
C:\path\to\LAStools\bin\las2txt.exe -i %BEFORE% -o "%BEFORE:~-0,-4%.txt" -parse xyzirc
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment