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

Frank DAVID frank.david at geophom.fr
Tue Feb 8 23:17:20 PST 2022


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 columns "a, b, c, d, e" in the 
> attribute table
> What I want: vector "vect_sub" with only, for instance, "a, c, e"
>
> I can use v.extract to subsample rows, but not columns. What is the 
> easiest way of doing that, what needing many commands (like creating 
> or copying the vector to a new one, creating a new attribute table, 
> then copying only the columns I want).
> I looked for that in the documentation but did not found it so easily.
>
> Thanks!
> Bernardo
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220209/7bb7c198/attachment.html>


More information about the grass-user mailing list