[vtkusers] How to import NASA SRTM DEM data into VTK
Elvis Dowson
elvis.dowson at mac.com
Mon Oct 13 07:57:24 EDT 2008
Hi,
I got some output, but don't know what to make of it?
vtkImageReader2 reader
reader SetFileName "/Users/elvis/Repository/Data/NASASRTM/version2/
SRTM3/Eurasia/N25E070.hgt"
reader SetHeaderSize 0
reader SetDataByteOrderToBigEndian
reader FileLowerLeftOn
reader SetDataScalarTypeToInt
reader SetFileDimensionality 2
reader SetDataExtent 0 200 0 200 0 0
vtkImageViewer2 viewer
viewer SetInputConnection [reader GetOutputPort]
viewer SetColorWindow 256
viewer SetColorLevel 127.5
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.
Best regards,
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081013/01baf5c5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 19901 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081013/01baf5c5/attachment.png>
More information about the vtkusers
mailing list