[vtkusers] Problem reading in large textures in GeoTIFF format

Elvis Dowson elvis.dowson at mac.com
Thu Nov 6 11:47:50 EST 2008


Hi,
         Is it possible to reduce the size of the texture in memory  
and crop it to something less than 4K*4K?

For example, for the DEM data, I am using vtkExtractVOI as follows:

vtkExtractVOI subset
   subset SetInput [reader GetOutput]
   subset SetSampleRate 1 1 1; # 3 sets subsample rate in xyz
   #subset SetVOI $XminR $XmaxR $YminR $YmaxR 0 1; # sets data extend  
in xyz min and max values
   subset SetVOI 0 400 0 400 0 1; # sets data extend in xyz min and  
max values

The original data extent is as follows:
XminR = 0
XmaxR = 1098
YminR = 0
YmaxR= 1418

The GeoTIFF file size is 4506 x 5818 pixels.

Best regards,

Elvis Dowson



More information about the vtkusers mailing list