[vtkusers] Re: File format

Roger Blum roger_blum at swissonline.ch
Thu Oct 20 19:37:36 EDT 2005


As nobody had any suggestion about the file formats, I have tried to 
generate
a vtk file containing STRUCTURED_POINTS and a XML ImageData file.

The results look like follows:
vtk  File:
#vtk DataFile Version 2.0
DHM Daten für Simulationsraum (710000/170000) (720000/180000)
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 400 400 1
ORIGIN 710000 170000 0
SPACING 25 25 0
POINT_DATA 160000
SCALARS values float 1
LOOKUP_TABLE default
1641.89 1655.71 1664.20 1678.29 1695.49 1710.88 1725.01 1737.68 1753.00 
1767.52 1780.42 1786.71 1793.70 1802.80
... a list of 160000 floats

XML file:
<VTKFile type="ImageData">
  <ImageData WholeExtent="0 399 0 399 0 0" Origin="710000 170000 0" 
Spacing="25 25 0">
    <Piece Extent="0 399 0 399 0 0">
      <PointData>
1641.89 1655.71 1664.20 1678.29 1695.49 1710.88 1725.01 1737.68 1753.00 
1767.52 1780.42 1786.71 1793.70 1802.80
  ... a list of 160000 float values ...
1502.10 1498.92 1494.88 1490.81 1487.28 1486.28 1484.02 1481.98
      </PointData>
    </Piece>
  </ImageData>
</VTKFile>

There seem to be problems in both files, as I was not able to visualize the 
contained data with the tcl script
"examples/VisualizationAlgorithms/BandContourTerrain.tcl" which exactly does 
one part of what I intend to do.
Replacing the reader source produced an empty visualisation window for the 
vtk file and a flat square with
contours like a checker board.

Any ideas what I do wrong?

Thanks,
Roger

"Roger Blum" <roger_blum at swissonline.ch> schrieb im Newsbeitrag 
news:dj6uat$qnn$1 at sea.gmane.org...
> Hello vtk users,
>
> I would like to display an elevation model. At the moment the data is 
> stored in a database. As reading from the database is rather slow and the 
> database is not always available, I would like to export data into a vtk 
> readable file.
>
> The data has the following characteristics:
> - A rectangular area (typical size 4000 * 2000 points)
> - Each point has different attributes (height, covering,  type, ev. 
> others)
>
> What is the best way to represent the data (with the fastest reading)?
> Can I use a structured points file or a XML Image Data file?
> Can I read all the information from 1 file or do I need a file for each 
> attribute?
>
> Thanks in advance for your ideas,
> Roger
>
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list