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.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 834 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 934 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website
