[GRASS-user] reorder columns in vector attribute table

Veronica Andreo veroandreo at gmail.com
Wed May 23 03:12:29 PDT 2018


Hi all,

I want to use v.patch -e to patch geometries and attributes of polygon maps
belonging to different states in Australia and the column names in the attr
tables are the same (they only vary in the order in which they are) but
when making an attempt, I get:

v.patch -e input=act_bushfire_2012_2017,tas_bushfire_2012_2017 output=test
ERROR: Column names differ

Column names here:

v.db.select tas_bushfire_2012_2017 | head
cat|FIRE_TYPE|OBJECTID|START_DATE|END_DATE|STATE|AREA_ha|PERIMETER_km

v.db.select act_bushfire_2012_2017
cat|OBJECTID|FIRE_TYPE|START_DATE|END_DATE|STATE|AREA_ha|PERIMETER_km

only OBJECTID and FIRE_TYPE are shifted.

Is there an easy way to reorder columns in the attribute table of a vector
map?? I thought v.patch would match column names in the attr table...

Thanks much in advance,
Vero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180523/49bc892c/attachment.html>


More information about the grass-user mailing list