Opened 7 years ago

Closed 6 years ago

#2051 closed enhancement (fixed)

r.to.vect: add option to not create attribute table if -v flag is used

Reported by: mlennert Owned by: grass-dev@…
Priority: minor Milestone: 7.0.0
Component: Default Version: svn-trunk
Keywords: r.to.vect, attribute table Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Change History (4)

comment:1 in reply to:  description ; Changed 7 years ago by mmetz

Replying to 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.

comment:2 in reply to:  1 Changed 6 years ago by mlennert

Replying to mmetz:

Replying to 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

comment:3 Changed 6 years ago by neteler

Keywords: r.to.vect attribute tabler.to.vect, attribute table

Moritz, can the ticket be closed?

comment:4 in reply to:  3 Changed 6 years ago by mlennert

Resolution: fixed
Status: newclosed

Replying to neteler:

Moritz, can the ticket be closed?

Yes. Closing.

Note: See TracTickets for help on using tickets.