GRASS has r.out.vtk, v.out.vtk, and r3.out.vtk to export GRASS data to Paraview files.
But how can I read Paraview files back into GRASS?
Michael
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
But I don't quite understand how the bridge works. Do you run it from GRASS or ParaView, both or neither (i.e., from the terminal outside either program)?
Also, I assume it must be compiled. Do you (or someone) know if it has been compiled for Windows and Mac as well as Linux?
Cheers
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
2012/2/14 Michael Barton <Michael.Barton@asu.edu>:
Thanks Markus,
But I don't quite understand how the bridge works. Do you run it from GRASS or ParaView, both or neither (i.e., from the terminal outside either program)?
The vtk-grass-bridge is a C++ library and must be compiled. I did not
test the compilation on Windows or Mac,
but it should work ..... in theory. The library depends on VTK[1],
cmake[2] and of course on GRASS GIS 7.
A detailed compilation guide is available here: http://code.google.com/p/vtk-grass-bridge/wiki/HowToCompile
Once compiled, the C++ classes can be used together with VTK classes
in GRASS GIS Python modules. Hence, all the shiny data processing
algorithms available in ParaView can be used directly with GRASS GIS
raster, vector and raster3d.
Have a look at the Python examples[3, 4, 5, 6]. Since these modules
are regular GRASS "programs" they must be executed in a grass7 shell.
Also, I assume it must be compiled. Do you (or someone) know if it has been compiled for Windows and Mac as well as Linux?
Cheers
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
If I get bold enough to try this, do I need to have source trees of both GRASS and VTK? And if so, do I need to have VTK compiled? I'm using a binary of Paraview but don't have VTK independent of that (AFAIK).
Also, do I need to put this anywhere in particular or will make install do it for me?
Thanks
Michael
On Feb 14, 2012, at 1:17 PM, Sören Gebbert wrote:
Hi,
2012/2/14 Michael Barton <Michael.Barton@asu.edu>:
Thanks Markus,
But I don't quite understand how the bridge works. Do you run it from GRASS or ParaView, both or neither (i.e., from the terminal outside either program)?
The vtk-grass-bridge is a C++ library and must be compiled. I did not
test the compilation on Windows or Mac,
but it should work ..... in theory. The library depends on VTK[1],
cmake[2] and of course on GRASS GIS 7.
A detailed compilation guide is available here: Google Code Archive - Long-term storage for Google Code Project Hosting.
Once compiled, the C++ classes can be used together with VTK classes
in GRASS GIS Python modules. Hence, all the shiny data processing
algorithms available in ParaView can be used directly with GRASS GIS
raster, vector and raster3d.
Have a look at the Python examples[3, 4, 5, 6]. Since these modules
are regular GRASS "programs" they must be executed in a grass7 shell.
Also, I assume it must be compiled. Do you (or someone) know if it has been compiled for Windows and Mac as well as Linux?
Cheers
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org grass-dev Info Page
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Corporation for Atmospheric Research
303-497-2889 (voice)
2012/2/15 Michael Barton <Michael.Barton@asu.edu>:
Soren,
If I get bold enough to try this, do I need to have source trees of both GRASS and VTK? And if so, do I need to have VTK compiled? I'm using a binary of Paraview but don't have VTK independent of that (AFAIK).
I did not tested it with pre-compiled ParaView/VTK binaries ... but it
should work in theory. You need to make sure that there are VTK shared
libraries and that they are in your LD_LIBRARY_PATH and so the Python
bindings which must be in your PYTHONPATH variable.
But you will need cmake for configuration and a C++ compiler (only
tested with GNU compiler collection C++ compiler). I think there is no
way around the compilation HowTo.
Also, do I need to put this anywhere in particular or will make install do it for me?
Make install should do the job, as /usr/local is the default
installation location which should be automatically in your path on a
Linux machine.
Best regards
Sören
Thanks
Michael
On Feb 14, 2012, at 1:17 PM, Sören Gebbert wrote:
Hi,
2012/2/14 Michael Barton <Michael.Barton@asu.edu>:
Thanks Markus,
But I don't quite understand how the bridge works. Do you run it from GRASS or ParaView, both or neither (i.e., from the terminal outside either program)?
The vtk-grass-bridge is a C++ library and must be compiled. I did not
test the compilation on Windows or Mac,
but it should work ..... in theory. The library depends on VTK[1],
cmake[2] and of course on GRASS GIS 7.
A detailed compilation guide is available here: http://code.google.com/p/vtk-grass-bridge/wiki/HowToCompile
Once compiled, the C++ classes can be used together with VTK classes
in GRASS GIS Python modules. Hence, all the shiny data processing
algorithms available in ParaView can be used directly with GRASS GIS
raster, vector and raster3d.
Have a look at the Python examples[3, 4, 5, 6]. Since these modules
are regular GRASS "programs" they must be executed in a grass7 shell.
Also, I assume it must be compiled. Do you (or someone) know if it has been compiled for Windows and Mac as well as Linux?
Cheers
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Corporation for Atmospheric Research
303-497-2889 (voice)