LIDAR scripting

JamesRutterJamesRutter Global Mapper UserPosts: 98Trusted User
edited December 2014 in GM Script Language
Where can I find documentation on scripting LIDAR functions? I looked in the scripting reference guide but can't find what I need. I believe there are functions like LIDAR_classify etc which I want to have a go at using as I have a bunch of LAS files that I want to push through GM to to auto ground classification and auto non-ground classification and burn RGB colours in from an air survey.

Thanks

James

Comments

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,160
    edited December 2014
    Hi James,

    Have you tried looking here: Global Mapper Scripting Reference? It contains descriptions for the LIDAR_CLASSIFY and LIDAR_EXTRACT commands.

    Cheers,

    Bob
  • JamesRutterJamesRutter Global Mapper User Posts: 98Trusted User
    edited December 2014
    Ah, ok thanks. It doesn't seem clear anywhere how to get to that page??

    I've been using this URL from the GM LIDAR product page but there seems scant reference to LIDAR scripting in that resource?
    https://www.bluemarblegeo.com/knowledgebase/global-mapper/index.htm#Scripting_Reference.htm
    Thanks
    James
  • Loren DaweLoren Dawe Global Mapper User Posts: 3
    edited December 2014
    I am new to GM, let alone GM scripting and purchased GM specifically to evaluate the lidar module. Any chance someone could post a script that does auto ground/etc. on a folder or in batch somehow?
    TIA
  • JamesRutterJamesRutter Global Mapper User Posts: 98Trusted User
    edited December 2014
    Try this - it will autoclassify ground and building / high vegetation.
    Adjust the file path for your local set up.
    GLOBAL_MAPPER_SCRIPT VERSION=1.00
    UNLOAD_ALL
    
    
    
    
    // Loop over all DEM files in a folder and convert them
        DIR_LOOP_START DIRECTORY="I:\lidar" FILENAME_MASKS="*.las" RECURSE_DIR=NO
    
    
        // Import an LAS LIDAR file 
        IMPORT FILENAME="%FNAME_W_DIR%"  
    
    
        // Autoclassify the ground points.
        LIDAR_CLASSIFY FILENAME=%FNAME% TYPE=GROUND LIDAR_RESET_GROUND=YES
    
    
        // Autoclassify the non-ground points.
        LIDAR_CLASSIFY FILENAME=%FNAME% TYPE=NONGROUND LIDAR_RESET_NONGROUND=YES
    
    
        // Export the classified LIDAR to new files
        EXPORT_VECTOR FILENAME="%DIR%%FNAME_WO_EXT%_CLASSIFIED.las" TYPE=LIDAR_LAS 
            
        // Unload just the currently loaded LIDAR file in the loop 
        UNLOAD_LAYER FILENAME=%FNAME%
    
    
    // End the loop
    DIR_LOOP_END
    
  • Loren DaweLoren Dawe Global Mapper User Posts: 3
    edited December 2014
    Awesome!
    Thanks James.
  • jeb76jeb76 Global Mapper User Posts: 6
    Those Lidar scripting references are a dead end.  Is there an updated link.  I realize this is an old post. Thanks Joel
  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,160
    edited April 2018
    jeb76 said:
    Those Lidar scripting references are a dead end.  Is there an updated link.  I realize this is an old post. Thanks Joel
    Hi Joel,

    Try this link.

    Cheers,
    Bob
Sign In or Register to comment.