[GRASS-user] v.dissolve renames the attribute column

Markus Metz markus.metz.giswork at googlemail.com
Mon May 28 03:30:43 PDT 2012


On Mon, May 28, 2012 at 11:52 AM, spiderplant0 <spiderplant0 at gmail.com> wrote:
> Hi. It doesn't add any new information but I wanted the .dbf file to be there
> so I can open it up with other tools and check the contents for debug
> purposes etc. And I wanted to change the column to the correct name for
> consistency with downstream processing scripts.

Try
v.dissolve input=pass2 at mapset1 layer=1 column=fttcp output=pass3
v.db.addtable map=pass3
v.db.renamecol map=pass3 column=cat,fftcp

If you want that to be done by v.dissolve, that is, v.reclass,
automatically, you could file an enhancement ticket for v.reclass to
add a new flag, say -t, to always create a table for the output where
the original column name is used when the column type is integer.

HTH,

Markus M


More information about the grass-user mailing list