Erdas IMG Export extremly slow when using Scripting
PeterDrexel
Global Mapper UserTrusted User
Mike,
(GM13.2 64 Bit)
I am processing Lidar-Pointdata to a regular Grid and want to save it to a Erdas IMG 32bit-Eelvation-Grid using a Script.
It works, but it is a least 10 times slower if I use a Script compared to do it directly (no Script) in Globalmapper.
I was able to break the problem down to a small part of the Script, it seems that writing out the elevation data via Script is very slow.
Find atached in the zip-File 2 files (in.img and gms.gms). Simply copy them into one Folder and run the Script. It will just read the in.img and write out an out.img-File - taking 30 Seconds on my computer.
If I open the in.img directly in GM and use FILE - EXPORT Elevation-Grid - ERDAS it only takes 3 seconds to write the 32bit-IMG-File out. Also I am not able to create "exactly" the same file (Filessize) using File - Export regardless if I choose to create a Compressed File or if I add Overview Layes.
Thanks
Peter
(GM13.2 64 Bit)
I am processing Lidar-Pointdata to a regular Grid and want to save it to a Erdas IMG 32bit-Eelvation-Grid using a Script.
It works, but it is a least 10 times slower if I use a Script compared to do it directly (no Script) in Globalmapper.
I was able to break the problem down to a small part of the Script, it seems that writing out the elevation data via Script is very slow.
Find atached in the zip-File 2 files (in.img and gms.gms). Simply copy them into one Folder and run the Script. It will just read the in.img and write out an out.img-File - taking 30 Seconds on my computer.
If I open the in.img directly in GM and use FILE - EXPORT Elevation-Grid - ERDAS it only takes 3 seconds to write the 32bit-IMG-File out. Also I am not able to create "exactly" the same file (Filessize) using File - Export regardless if I choose to create a Compressed File or if I add Overview Layes.
Thanks
Peter
Comments
-
Peter,
The "fill gaps" option is enabled by default in a script. Add FILL_GAPS=NO to your EXPORT_ELEVATION script command and you should get much better performance and identical results.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Mike,
works perfect, I must have been blind not to see that in the reference,
Thanks
Peter
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