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
-
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.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

