[GRASS-dev] [GRASS GIS] #1268: r.out.vtk does not work as desired for RGB images

GRASS GIS trac at osgeo.org
Tue Jan 25 16:50:08 EST 2011


#1268: r.out.vtk does not work as desired for RGB images
-------------------------+--------------------------------------------------
 Reporter:  voncasec     |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.1                    
Component:  Default      |     Version:  svn-releasebranch64      
 Keywords:  vtk          |    Platform:  Linux                    
      Cpu:  x86-64       |  
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1268>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list