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

Elvis Dowson elvis.dowson at mac.com
Mon Oct 13 09:23:53 EDT 2008


Hi Mathieu,
                         :-) I didn't understand the answer. :-)  The  
data that is encoded in the STRM file is signed 16-bit integer.  What  
do the parameters for SetDataExtent mean?

What value should I multiply sizeof(int) with?

Thanks!

Best regards,

Elvis Dowson


On Oct 13, 2008, at 5:18 PM, Mathieu Malaterre wrote:

> On Mon, Oct 13, 2008 at 3:17 PM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> 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
>
> ... * sizeof(ushort)
>
> :)
>
> -- 
> Mathieu




More information about the vtkusers mailing list