Oct 172013
 

GLOBAL_MAPPER_SCRIPT VERSION=1.00
// Tuesday, October 15, 2013, 6:41 PM, VKB - Filtered Export Scripting - Is It Possible?
// Answer: Yes, but not wholly from Global Mapper; will require successive steps and other software
//
// Where should we go to get our data?
// 
// First crack at nesting loops
DEFINE_VAR NAME="PARENT" VALUE="c:\mcctests" 

DIR_LOOP_START \
    DIRECTORY="%PARENT%" \
    RECURSE_DIR=YES

DEFINE_VAR NAME="INPUT" VALUE="%DIR%" 

// First load the unclassified lidar data into their own group
DIR_LOOP_START \
    DIRECTORY="%INPUT%" \
    FILENAME_MASKS="*.LAS" \
    RECURSE_DIR=NO
    
    IMPORT FILENAME="%FNAME_W_DIR%" TYPE="LIDAR_LAS" LAYER_GROUP="unclassified" \
    	 LOAD_FLAGS="1048576,6.000,0,2~0~0~0~0~0~0~0,,4294967295,0.00,5.00,1" \
    	 LIDAR_POINT_SIZE="1"
    
DIR_LOOP_END

// Next load the data classified as ground into their own group
DIR_LOOP_START \
    DIRECTORY="%INPUT%" \
    FILENAME_MASKS="*.LAS" \
    RECURSE_DIR=NO
    
    IMPORT FILENAME="%FNAME_W_DIR%" TYPE="LIDAR_LAS" LAYER_GROUP="ground" \
    	 LOAD_FLAGS="1048576,6.000,0,4~0~0~0~0~0~0~0,,4294967295,0.00,5.00,1" \
    	 LIDAR_POINT_SIZE="1"
    
DIR_LOOP_END

// Now we prepare the text file for final winnowing in TextPad - WildEdit before bringing into OpenOffice Calc
EXPORT_METADATA FILENAME="*.las" METADATA_FILENAME="%INPUT%.txt"

// Clean it out and start over in next subdirectory
UNLOAD_ALL

DIR_LOOP_END
 Posted by on October 17, 2013 at 7:58 am