On 05/27/2012 03:38 PM, spiderplant0 wrote:
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).

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:
NOTES

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).
For dissolving common boundaries, see v.dissolve.


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?

Adding a new, empty attribute table is easy:
v.db.addtable <vector_name> columns="col1 integer, col2 varchar(20), ..."
 

I am using GRASS 6.4.2 on windows 7


--
View this message in context: http://osgeo-org.1560.n6.nabble.com/v-dissolve-renames-the-attribute-column-tp4977208.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.




-- 
Micha Silver
GIS Consultant, Arava Development Co.
http://www.surfaces.co.il
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to