On Thu, Oct 1, 2015 at 10:01 AM, Michel Wortmann <wortm...@pik-potsdam.de> wrote: > Hi Paulo, > I had the same problem some time ago. I am using pandas for a lot of things > and discovered the quickest way to append a column to a vector table is > using pandas' .to_sql dataframe method. Here is my full function for it:
To add a ne column on an existing vector map in pygrass: write: {{{ if 'column_name' in vect.table.columns: vect.table.columns.drop('column_name') vect.table.columns.add('column_name', 'column_type') }}} _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev