Created
          December 27, 2019 19:41 
        
      - 
      
- 
        Save shnhrtkyk/39ce4efd5364c4927e296340a169eda7 to your computer and use it in GitHub Desktop. 
    macでtxt2las 一括
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | for file in `\find . -name '*.txt'`; do | |
| echo $file | |
| tonnage=${file##*/} | |
| echo ${tonnage/.txt/.las} | |
| /path/to/LAStools-master/bin/txt2las -i $file -o ../train_las/${tonnage/.txt/.las} -parse xyzc | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment