[GRASS-dev] r.out.vtk problem?

Sören Gebbert soerengebbert at googlemail.com
Fri Nov 28 07:40:40 PST 2014

Hi Luca,

2014-11-28 15:28 GMT+01:00 Luca Delucchi <lucadeluge at gmail.com>:
> On 28 November 2014 at 14:35, Sören Gebbert
> <soerengebbert at googlemail.com> wrote:
>> Hi Luca,
> Hi Soeren
>> can you please provide the command line that produces the wrong output?
> r.out.vtk in=2012_01_tempmean
> out=/tmp/export_temporal/2012_01_tempmean.vtk rgbmaps=2012_01_tempmean
> elevation2d=elev_state_500m at PERMANENT

Use the "input" option to specify the raster map that should be
exported. The "rgbmaps" option expects three maps for red, green and
blue (satellite image data).

Please use the "elevation" parameter for elevation maps. The
elevation2d parameter is a number that specifies the height of the
whole map if no elevation maps was specified.

> using the data of FOSS4g 2014 temporal workshop
>> Important to know is that r.out.vtk does not transform the GRASS color
>> table into a VTK lookup table. Therefore you do not see the colors
>> from GRASS in ParaView.
> ah, would it be possible to implement it? a new parameter like color?

It is possible to implement. Feel free to do it. :)
You do not need a new parameter, since the "input" option expects one
more raster maps. Their color tables must be converted into the VTK
legacy lookup table format to visualize them in ParaView.

The "rgbmaps" option allows you to specify red, green and blue maps
that can be combined in ParaView to RGB data, hence no color table
conversion is needed here.

Best regards

>> Best regards
>> Soeren
> --
> ciao
> Luca
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org

More information about the grass-dev mailing list