[GRASS-dev] [GRASS GIS] #2051: r.to.vect: add option to not create attribute table if -v flag is used

GRASS GIS trac at osgeo.org
Thu Aug 1 04:25:37 PDT 2013


#2051: r.to.vect: add option to not create attribute table if -v flag is used
---------------------------------------+------------------------------------
 Reporter:  mlennert                   |       Owner:  grass-dev@…              
     Type:  enhancement                |      Status:  new                      
 Priority:  minor                      |   Milestone:  7.0.0                    
Component:  Default                    |     Version:  svn-trunk                
 Keywords:  r.to.vect attribute table  |    Platform:  Unspecified              
      Cpu:  Unspecified                |  
---------------------------------------+------------------------------------

Comment(by mlennert):

 Replying to [comment:1 mmetz]:
 > Replying to [ticket:2051 mlennert]:
 > > The -v flag of r.to.vect allows to use the pixel values of a CELL
 raster as category values of the created vector features. In that case and
 in certain circumstances it might not be necessary to create a database
 table for the output vector. It would thus be nice if r.to.vect had an
 option that would allow not to create an attribute table if the -v flag is
 used.
 >
 > Try r57333.
 >
 > The change is slightly different than requested: the creation of an
 attribute table can also be suppressed if the -v flag is not used, in
 which case a warning is printed out that raster values will be lost.
 Sometimes it might be useful to just have e.g. areas or lines with a
 unique category and the raster values are no longer needed.

 Thanks ! I agree with your version of the change.

 Won't have the time to test, though, as I'm leaving on vacation in a few
 hours...

 Moritz

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2051#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list