Opened 11 years ago
Closed 11 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: | |
---|---|---|---|
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)
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 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
follow-up: 4 comment:3 by , 11 years ago
Keywords: | r.to.vect attribute table → r.to.vect, attribute table |
---|
Moritz, can the ticket be closed?
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to mlennert:
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.