Thanks. This is very helpful. I'm not up on compiling in C++ but hopefully someone here will be able to look into this. It sounds very useful.
Michael On Feb 14, 2012, at 4:02 PM, <[email protected]> wrote: > Date: Tue, 14 Feb 2012 21:17:30 +0100 > From: S?ren Gebbert <[email protected]> > Subject: Re: [GRASS-dev] GRASS and Paraview > To: Michael Barton <[email protected]> > Cc: [email protected], Jennifer Boehnert <[email protected]>, GRASS > developers grass-developers <[email protected]> > Message-ID: > <CAPHDRe+aUS-juAPJMAzaJSgB7nMs6u1LFH9=eerapuc4nqv...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hi, > > 2012/2/14 Michael Barton <[email protected]>: >> 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. > > [1] http://www.vtk.org/ > [2] http://www.cmake.org/ > [3] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/r3.gauss.smooth.py > [4] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/v.sample.rast.py > [5] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/r3.out.vtk2.py > [6] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/ > > Best regards > Soeren > >> >> 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) >> >> Director, Center for Social Dynamics & Complexity >> Professor of Anthropology, School of Human Evolution & Social Change >> Arizona State University >> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu >> >> >> >> >> >> On Feb 14, 2012, at 11:21 AM, Markus Neteler wrote: >> >>> On Tue, Feb 14, 2012 at 7:13 PM, Michael Barton <[email protected]> >>> wrote: >>>> 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? >>> >>> Please see >>> http://grass.osgeo.org/wiki/GRASS_and_VTK >>> -> Import of VTK data into GRASS >>> >>> Markus >> >> _______________________________________________ >> grass-dev mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/grass-dev > > _____________________ C. Michael Barton Visiting Scientist, Integrated Science Program National Center for Atmospheric Research & University Consortium for Atmospheric Research 303-497-2889 (voice) Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Arizona State University www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
