Lidar classification

Is there a specific scripting function to get a hold on a specific lidar filter classification (for example class 7) and place those captured points into a different lidar filter classification? Or, place all the captured points from a filter classification into a variable, then add that variable to a different class? Here is what I have so far: 

//loop over the specified directory for all files ending in .las
DIR_LOOP_START DIRECTORY="N:\4341_Kootenay\script_work_CC\source\may08_rob_las_files\" FILENAME_MASKS="*.las"

//import all files that end in .las
IMPORT FILENAME = "%FNAME_W_DIR%"

// select all points within the scan range of 30 degrees in filter class 7 
  LIDAR_CLASSIFY TYPE="LOW_NOISE" LIDAR_SCAN_ANGLE_RANGE="-30,30" LIDAR_FILTER="NONE,7"
  
//place all points captured from filter class 7, into filter class 12 
LIDAR_FILTER="NONE,12"

 
LAYER_LOOP_START FILENAME="*"

SET_LAYER_OPTIONS FILENAME="%LAYER_FNAME_W_DIR%" HIDDEN=NO

//export a new las file to the specified directory 
EXPORT_VECTOR FILENAME="%LAYER_DIR%%LAYER_FNAME_WO_EXT%_CC_reclassified.las" TYPE="LIDAR_LAS"

//hide the file extension file name before exiting the nested layer loop and writing the file name
SET_LAYER_OPTIONS FILENAME="%LAYER_FNAME_W_DIR%" HIDDEN=YES

LAYER_LOOP_END

UNLOAD_ALL

DIR_LOOP_END
Tagged:

Answers

  • ColeCole Posts: 20
    Solved: changing lidar classifications with GM scripting is a limitation of the language.
Sign In or Register to comment.