delete duplicate lidar points

When looking to remove duplicate lidar points when using a script, the command is: EDIT_VECTOR followed by DELETE_DUPLICATES=YES correct? It seems strait forward, but all the duplicate points in my lidar file are still there when i run the below script:

GLOBAL_MAPPER_SCRIPT VERSION=1.00

DIR_LOOP_START DIRECTORY="N:\4341_Kootenay\Robs_Las_Files\lidar w duplicate points" FILENAME_MASKS="*.las" RECURSE_DIR=NO

IMPORT FILENAME="%FNAME_W_DIR%"

EDIT_VECTOR DELETE_DUPLICATES=YES 

LAYER_LOOP_START FILENAME="*"

SET_LAYER_OPTIONS FILENAME="%LAYER_FNAME_W_DIR%" HIDDEN=NO

EXPORT_VECTOR TYPE=LIDAR_LAS FILENAME="%LAYER_DIR%%LAYER_FNAME_WO_EXT%_dup_pnts_removed.las" 

SET_LAYER_OPTIONS FILENAME="%LAYER_FNAME_W_DIR%" HIDDEN=YES
LAYER_LOOP_END

UNLOAD_ALL
DIR_LOOP_END

Answers

  • ColeCole Posts: 20
    SOLVED: This is yet another lidar limitation of the GM scripting language. The DELETE_DUPLICATES functionality only works on vector layers, and will not work with lidar. A ticket was opened for it, #16857, but no workaround has been noted. 
Sign In or Register to comment.