Opened 11 years ago

Closed 10 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)

in reply to:  description ; comment:1 by mmetz, 11 years ago

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.

in reply to:  1 comment:2 by mlennert, 11 years ago

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 by neteler, 10 years ago

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

Moritz, can the ticket be closed?

in reply to:  3 comment:4 by mlennert, 10 years ago

Resolution: fixed
Status: newclosed

Replying to neteler:

Moritz, can the ticket be closed?

Yes. Closing.

Note: See TracTickets for help on using tickets.