[GRASS-dev] GRASS and Paraview

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, <grass-dev-request@lists.osgeo.org> wrote:

Date: Tue, 14 Feb 2012 21:17:30 +0100
From: S?ren Gebbert <soerengebbert@googlemail.com>
Subject: Re: [GRASS-dev] GRASS and Paraview
To: Michael Barton <Michael.Barton@asu.edu>
Cc: ksampson@ucar.edu, Jennifer Boehnert <boehnert@ucar.edu>, GRASS
       developers grass-developers <grass-dev@lists.osgeo.org>
Message-ID:
       <CAPHDRe+aUS-juAPJMAzaJSgB7nMs6u1LFH9=EERApUC4nqV6bg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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.

[1] http://www.vtk.org/
[2] http://www.cmake.org/
[3] Google Code Archive - Long-term storage for Google Code Project Hosting.
[4] Google Code Archive - Long-term storage for Google Code Project Hosting.
[5] Google Code Archive - Long-term storage for Google Code Project Hosting.
[6] Google Code Archive - Long-term storage for Google Code Project Hosting.

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 <michael.barton@asu.edu> 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
GRASS and VTK - GRASS-Wiki
-> Import of VTK data into GRASS

Markus

_______________________________________________
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 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