Re: [GRASS-user] grass command to subset the columns of a vector

2022-02-10 Thread Bernardo Santos via grass-user
Hi Micha, thanks for the suggestion, it solves my question on how to perform this middle step of listing the columns that do not match the intended ones. I'll use it for now! =) BestBEm quinta-feira, 10 de fevereiro de 2022 09:45:29 GMT+1, Micha Silver escreveu: On 09/02/2022 15:56,

Re: [GRASS-user] grass command to subset the columns of a vector

2022-02-10 Thread Micha Silver
On 09/02/2022 15:56, Bernardo Santos via grass-user wrote: Dear Markus Thanks for your answer. I thought about v.db.dropcolumn earlier. However, I am trying to include this within a function, following a workflow in which the input vector might have columns with different names, in which

Re: [GRASS-user] grass command to subset the columns of a vector

2022-02-09 Thread Bernardo Santos via grass-user
Dear Markus Thanks for your answer. I thought about v.db.dropcolumn earlier. However, I am trying to include this within a function, following a workflow in which the input vector might have columns with different names, in which case it would be good to be able to select the ones to keep

Re: [GRASS-user] grass command to subset the columns of a vector

2022-02-09 Thread Markus Neteler
Hi Bernardo, On Wed, Feb 9, 2022 at 1:39 AM Bernardo Santos via grass-user wrote: > > Dear list, > > Is there a GRASS GIS command (maybe a v.db.* one) to subset, in a single > command, the columns of a vector? > > What I have: vector "vect" with 5 columns "a, b, c, d, e" in the attribute >

Re: [GRASS-user] grass command to subset the columns of a vector

2022-02-08 Thread Frank DAVID
Hello, May be duplicate your file and remove the unwanted column. Frank Le 09/02/2022 à 01:39, Bernardo Santos via grass-user a écrit : Dear list, Is there a GRASS GIS command (maybe a v.db.* one) to subset, in a single command, the columns of a vector? What I have: vector "vect" with 5

[GRASS-user] grass command to subset the columns of a vector

2022-02-08 Thread Bernardo Santos via grass-user
Dear list, Is there a GRASS GIS command (maybe a v.db.* one) to subset, in a single command, the columns of a vector? What I have: vector "vect" with 5 columns "a, b, c, d, e" in the attribute tableWhat I want: vector "vect_sub" with only, for instance, "a, c, e" I can use v.extract to subsample