TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 28 Apr 2024 00:47

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 19 Oct 2011 03:01 
Offline

Joined: 12 Sep 2011 20:04
Posts: 1
I am trying to open geo-referenced raster maps downloaded from the Geogratis.Ca site. Some will load as is shown in Tutorial 8 while others do not. I can open 021A09 and process it. 021A08 works too. But 011D12 shows only a black rectangle with a coordinate grid. 021A08 and 021A09 are about 88 megapixels, while 011D12 is 97.7 megapixels. Is 011D12 a bit too big while the others just fit? If so, would doing all I can to increase available RAM maybe fix it?

Thank you.
Al the (civil) Engineer

My computer:
General
Operating System Microsoft Windows XP Professional
Central Processor AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Graphics
Video Adapter NVIDIA GeForce GTX 460
Video Memory 768.00 MB
Screen Resolution 1600 x 900
Storage
Total Memory 3.00 GB
Free Memory 1.85 GB
Total Hard disk 847.69 GB
Free Hard disk 391.40 GB
Memory Resource
Total Memory 3.00 GB
Used Memory 1.14 GB
Free Memory 1.86 GB
Memory Usage 38%
Video Adapter
Name NVIDIA GeForce GTX 460
Video Processor GeForce GTX 460
Manufactory NVIDIA
Video Architecture VGA
DAC Type Integrated RAMDAC
Memory Size 768.00 MB
Memory Type Unknown
Video Mode 1600 x 900 x 4294967296 colors
Current Refresh Rate 60 Hz
Driver Version 6.14.12.8026
Driver Date 03/08/2011 11:49:00 AM


Top
 Profile  
 
PostPosted: 20 Oct 2011 10:02 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Engineeral wrote:
Is 011D12 a bit too big while the others just fit? If so, would doing all I can to increase available RAM maybe fix it?
Indeed, the image seems to be too big for at least one of the algorithms of the processing pipeline in TransDEM. I will have a closer look but won't make any promises. Unfortunately, more memory will not solve the problem.


Top
 Profile  
 
PostPosted: 22 Oct 2011 15:44 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Update: I found the cause of the problem.

TransDEM uses the GDI+ library which has a number of nice features such as being able keep compressed images in memory in compressed form, until access to the pixels is really needed. Unfortunately, GeoTIFF images are often uncompressed, as in this example. This particular image eats up 400MB and apparently exceeds some threshold. The next GDI+ Draw-to-an-image method fails, running out of memory on a temporary buffer internally.

What I now do in case of error is to compress this large image in memory, using jpeg encoding. It takes a while, but overcomes the memory limitation obstacle. The only catch is that all transparency will be lost. However, all will still work, if the user stays with the suggested processing order for large images: 1. reduce size, 2. reduce margins and 3. apply transparency.

This bypass will be included in TransDEM 2.2.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Imprint & Privacy

Powered by phpBB® Forum Software © phpBB Group