Lidar Color from Images Batch & Scripting
Hello everyone,
I'm trying to apply color to a folder of lidar files, using Geotiff files which are already opened in GM.
This is the script that I've written to do that:
_________________________________________
I'm trying to apply color to a folder of lidar files, using Geotiff files which are already opened in GM.
This is the script that I've written to do that:
_________________________________________
GLOBAL_MAPPER_SCRIPT VERSION="1.00"
DIR_LOOP_START \
DIRECTORY=E:\Test_GM_Color\Las_WOC \
FILENAME_MASKS="*.las"
DIRECTORY=E:\Test_GM_Color\Las_WOC \
FILENAME_MASKS="*.las"
IMPORT \
FILENAME="%FNAME_W_DIR%" \
TYPE=LIDAR_LAS \
PROJ="E:\Test_GM_Color\UTM36S.prj"
EXPORT_VECTOR \
FILENAME="E:\Test_GM_Color\Las_WC\%FNAME_WO_EXT%.las" \
TYPE=LIDAR_LAS \
INC_COLOR=YES
UNLOAD_ALL VECTOR_ONLY
DIR_LOOP_END
_________________________________________
Unfortunately the script isn't working properly, it assign one color value for every point and ignore the color values from the images that I have opened in the GM.
The same thing happens if I use Batch/Convert tool, exactly the same. I import Type Lidar, Export Lidar from 3D Vector and choose the option "Apply color from Loaded Imagery to Lidar". The result: Lidar Pt Cloud all Blue! RGB constant for every point.
However if I open/import the las files into GM, instead of running them throw the batch or the script, and use the tool Apply Color to Lidar Pts, this time it colors the Lidar correctly.
Can anyone test this if the result is the same?
_________________________________________
Unfortunately the script isn't working properly, it assign one color value for every point and ignore the color values from the images that I have opened in the GM.
The same thing happens if I use Batch/Convert tool, exactly the same. I import Type Lidar, Export Lidar from 3D Vector and choose the option "Apply color from Loaded Imagery to Lidar". The result: Lidar Pt Cloud all Blue! RGB constant for every point.
However if I open/import the las files into GM, instead of running them throw the batch or the script, and use the tool Apply Color to Lidar Pts, this time it colors the Lidar correctly.
Can anyone test this if the result is the same?
Answers
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website