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
-
Solved: changing lidar classifications with GM scripting is a limitation of the language.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 351 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 422 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 183 Announcement and News
- 944 Bug Report
- 565 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 582 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website

