[vtkusers] vtkXMLImageDataReader

Roger Blum rogerblum at hawaii.rr.com
Tue Aug 12 05:08:49 EDT 2008


Hi everybody,

I try to read a VTK XML file containing image data but all I get is a 
message saying
ERROR: In ./VTK/IO/vtkXMLStructuredDataReader.cxx, line 80
vtkXMLImageDataReader (0x812fd90): ImageData element has no WholeExtent.

Anybody an idea what is wrong with my XML data?

Thanks,
Roger




Tcl Code to read the XML file
% vtkXMLImageDataReader IR
% IR SetFileName "data.vti"
% IR Update


Contents of the XML file:

<VTKFile type="ImageData">
   <ImageData WholeExtent="5.35000E+05 5.65000E+05 1.75000E+05 
2.05000E+05 1800.00 5400.00" Origin="0 0 0" Spacing="4285.71428571 
4285.71428571 1200.0">
     <Piece Extent="5.35000E+05 5.65000E+05 1.75000E+05 2.05000E+05 
1800.00 1800.00">
       <PointData>
         <DataArray Name="MinSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
         <DataArray Name="MaxSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
       </PointData>
     </Piece>

     <Piece Extent="5.35000E+05 5.65000E+05 1.75000E+05 2.05000E+05 
3600.00 3600.00">
       <PointData>
         <DataArray Name="MinSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
         <DataArray Name="MaxSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
       </PointData>
     </Piece>

     <Piece Extent="5.35000E+05 5.65000E+05 1.75000E+05 2.05000E+05 
5400.00 5400.00">
       <PointData>
         <DataArray Name="MinSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
         <DataArray Name="MaxSicHoehe" type="Float32" format="ascii">
            1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04 
1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04  1.02000E+04
         </DataArray>
       </PointData>
     </Piece>

   </ImageData>
</VTKFile>




More information about the vtkusers mailing list