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

#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 |
---------------------------------------+------------------------------------
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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2051&gt;
GRASS GIS <http://grass.osgeo.org>

#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 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.

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

#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&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
----------------------------------------+-----------------------------------
Changes (by neteler):

  * keywords: r.to.vect attribute table => r.to.vect, attribute table

Comment:

Moritz, can the ticket be closed?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2051#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

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

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:3 neteler]:
> Moritz, can the ticket be closed?

Yes. Closing.

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