LiDAR Building Extraction Script

Looking for some help with a script I am writing to extract the building footprints from tiled .laz data. The issue I am having is that the exported shapefiles are not showing up in my export folder location. Thoughts? 

Script:

GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
//Loop over folder containing point cloud data
DIR_LOOP_START DIRECTORY="\\cafs02\Geoscience\GIS\COL\culture\LiDAR\Area13\CLASSIFIED_las" FILENAME_MASKS="*.LAZ" RECURSE_DIR="NO" 
//Import building class only
IMPORT FILENAME="%FNAME_W_DIR%" TYPE="LIDAR_LAS" LIDAR_FILTER="NONE,6" 
//Extract building footprint 
LIDAR_EXTRACT FILENAME="%FNAME_W_DIR%" TYPE="BUILDING" GRID_BIN_SIZE="1" SIMPLIFICATION="2"
//Unload laz data
UNLOAD_LAYER FILENAME="%FNAME_W_DIR%"
//Export building shapefile
EXPORT_VECTOR FILENAME="\\cafs02\Geoscience\GIS\COL\culture\LiDAR\Area13\AREA 13_LIDAR PRODUCTS_KYLE\ONGOING PRODUCTS\BUILDING FOOTPRINT EXTRACTION\%FNAME_WO_EXT%.shp" GEN_PRJ_FILE="YES" TYPE="SHAPEFILE" SHAPE_TYPE="AREAS"
UNLOAD_ALL
DIR_LOOP_END

Script Results snipet:
Importing file <\\cafs02\Geoscience\GIS\COL\culture\LiDAR\Area13\CLASSIFIED_las\BF041.laz>...
Extracting Features from Lidar point cloud...
Extracting BUILDING Features [32,816 possible points]...
Unloading layer \\cafs02\Geoscience\GIS\COL\culture\LiDAR\Area13\CLASSIFIED_las\BF041.laz
Exporting vector data to <\\cafs02\Geoscience\GIS\COL\culture\LiDAR\Area13\AREA 13_LIDAR PRODUCTS_KYLE\ONGOING PRODUCTS\BUILDING FOOTPRINT EXTRACTION\BF041_BUILDING.shp>...
Removed all loaded overlays.

Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Hello,

    What version of Global Mapper are you using?
    Does the export folder get created? (or does it already exist?)
    Have you run the same test with the output going to a local folder instead of a network folder?
    Are you sure that the Lidar extraction process produces area features?

    Cheers,
    Bob

  • -Output folder already exists
    -Have run sample tile manually with successful extraction of area features

    Will try a local output and get back to you Bob. Appreciate the quick reponse! 

    Kyle 
  • @bmg_bob was able to get the original script to run this morning with no issues. I think it must have been a network issue our with Citrix and/or server. Thank you for the help! May reach out with another script that is giving me trouble (Canopy Height Modelling)