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
Tagged:
Answers