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
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

