<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=windows-1255"
      http-equiv="Content-Type">
    <style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="preferred-charset"
    bgcolor="#FFFFFF" text="#000000">
    On 05/27/2012 03:38 PM, spiderplant0 wrote:
    <blockquote cite="mid:1338122333419-4977208.post@n6.nabble.com"
      type="cite">
      <pre wrap="">When I run v.dissolve on my vector...

*v.dissolve --o input=pass2@mapset1 layer=1 column=fttcp output=pass3*

The dissolving appears to work but the column name in the attribute table
has changed from 'fttcp' to 'cat'. (I can tell by loading the GRASS vector
into QGIS and viewing the attribute table).</pre>
    </blockquote>
    <br>
    Yes, it seems that's hat happens. When using an integer column as
    the dissolve attribute in v.dissolve then it just calls it 'cat' and
    no dbf is created. The v.dissolve script uses v.reclass behind the
    scenes, and from the v.reclass man page:<br>
    NOTES<br>
    <br>
    No table is created for reclassed layer if column option is used and
    column type is integer (there is nothing which could be written to
    the table).<br>
    For dissolving common boundaries, see v.dissolve.<br>
    <br>
    <blockquote cite="mid:1338122333419-4977208.post@n6.nabble.com"
      type="cite">
      <pre wrap="">

Also, although the input has a dbf file, the output does not.

Is there a way to tell v.dissolve to retain the original column name or is
there a way to rename it?

Also, is there a reason v.dissolve doesnt write a dbf. Is there a way to get
it to write the attribute table to a dbf or is there a way to convert the
vector so it uses a dbf?</pre>
    </blockquote>
    <br>
    Adding a new, empty attribute table is easy: <br>
    v.db.addtable <vector_name> columns="col1 integer, col2
    varchar(20), ..."<br>
     <br>
    <blockquote cite="mid:1338122333419-4977208.post@n6.nabble.com"
      type="cite">
      <pre wrap="">

I am using GRASS 6.4.2 on windows 7


--
View this message in context: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/v-dissolve-renames-the-attribute-column-tp4977208.html">http://osgeo-org.1560.n6.nabble.com/v-dissolve-renames-the-attribute-column-tp4977208.html</a>
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>

This mail was received via Mail-SeCure System.


</pre>
    </blockquote>
    <p><br>
    </p>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
GIS Consultant, Arava Development Co.
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a></pre>
  </body>
</html>