id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,platform,cpu
1268,r.out.vtk does not work as desired for RGB images,voncasec,grass-dev@lists.osgeo.org,"r.out.vtk does not allow a user to export an RGB series of images to vtk format without specifying a required image as well.

For example, running r.out.vtk for an rgb series, as described in the user manual, returns the follwing:


{{{
r.out.vtk rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m output=/tmp/out.vtk
ERROR:
Parameter 'input' (Name of input raster map(s)) is missing.
}}}


Running r.out.vtk for an rgb series as described below creates the VTK file, but it is not viewable as an RGB image in Mayavi.


{{{
r.out.vtk input=FCIR_Composite rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m output=/tmp/out.vtk
}}}


To create the image for viewing in Mayavi, I currently have to convert the image channels to rast3d layers (r.to.rast3), then export to vtk using the r3.out.vtk option


{{{
r3.out.vtk top=elevation.10m bottom=elevation.10m rgbmaps=rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green output=/tmp/out.vtk
}}}


Can the required option be changed with r.out.vtk so that it will not prevent a user from exporting RGB channels only to vtk.
",enhancement,closed,normal,6.4.1,Default,svn-releasebranch64,invalid,vtk,,Linux,x86-64
