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
Script Results snipet:
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
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
-
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
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 923 Bug Report
- 560 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website