[vtkusers] How to import NASA SRTM DEM data into VTK

Elvis Dowson elvis.dowson at mac.com
Mon Oct 13 09:29:08 EDT 2008


Hi Mathieu,
                       So, if the size of the file is 2884802, then  
this implies that the sizeof(int) is 2 (which I'm assuming is the  
total number of bytes used to represent a signed integer. Since  
1201x1201 = 1442401.

Best regards,

Elvis Dowson

elvis-dowsons-macbook-pro:~ elvis$ ls -al "/Users/elvis/Repository/ 
Data/NASASRTM/version2/SRTM3/Eurasia/N25E070.hgt"
-rw-r--r--@ 1 elvis  staff  2884802 May 27  2005 /Users/elvis/ 
Repository/Data/NASASRTM/version2/SRTM3/Eurasia/N25E070.hgt


On Oct 13, 2008, at 5:25 PM, Elvis Dowson wrote:

> Hi Mathieu,
>                       Here is the output
>
> elvis-dowsons-macbook-pro:~ elvis$ ls -al "/Users/elvis/Repository/ 
> Data/NASASRTM/version2/SRTM3/Eurasia/N25E070.hgt"
> -rw-r--r--@ 1 elvis  staff  2884802 May 27  2005 /Users/elvis/ 
> Repository/Data/NASASRTM/version2/SRTM3/Eurasia/N25E070.hgt
>
> Best regards,
>
> Elvis Dowson
>
> On Oct 13, 2008, at 5:17 PM, Mathieu Malaterre wrote:
>
>> On Mon, Oct 13, 2008 at 1:57 PM, Elvis Dowson  
>> <elvis.dowson at mac.com> wrote:
>>> The image data is 1201x1201 array using 16-bit signed integers,  
>>> but it kept
>>> crashing when I use SetDataExtent 0 1201 0 1201 0 0.
>>
>> => [1202,1202,1] dimensions
>>
>> what is the output of :
>>
>> $ ls -al  "/Users/elvis/Repository/Data/NASASRTM/version2/SRTM3/ 
>> Eurasia/N25E070.hgt"
>>
>> answer:
>> it should be 1201 * 1201 * 1
>>
>> thx
>> -- 
>> Mathieu
>




More information about the vtkusers mailing list