<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><DIV></DIV>
<DIV>Hi Paolo, </DIV>
<DIV> </DIV>
<DIV>Because the table manager - has still far too many limitations ...</DIV>
<DIV> </DIV>
<DIV><STRONG><EM>For example</EM></STRONG></DIV>
<DIV> </DIV>
<DIV>This afternoon I was working on a legend of a vegetation map - the legend is in portuguese, so we use some "special" characters in as you'd find in the word <EM>vegetação </EM></DIV>
<DIV> </DIV>
<DIV>I wanted to modify the table by additional colum for having a simplied key - I can do that with the table manager - but then I already will have to save the new shape.  OK that has advantages and disadvantages - so let me do it ... </DIV>
<DIV> </DIV>
<DIV>(1) by the sheer fact of adding a colum to the table say "veg_general" - in the original table all records get affected with text using special characters so e.g. in the field "vegetation" something which was </DIV>
<DIV> </DIV>
<DIV>- "<EM>Savana arbórea</EM>" is transformed into "<EM>Savana arbórea</EM>" or </DIV>
<DIV>"<EM>Plantação florestal</EM>" into "<EM>Plantação florestal</EM>" </DIV>
<DIV> </DIV>
<DIV>prety annoying if you want to use that for your legend...</DIV>
<DIV> </DIV>
<DIV>(2) The next point is that with the table manager I don't know any way (but please tell me if there is), for quickly selecting a couple of categories to generalize into a new category - e.g. records with "<EM>evergreen forest</EM>" and "<EM>dense forest</EM>" (in the field "vegetation") combining into one new category such as "<EM>dense or evergreen forest</EM>" (in the field "veg_general").</DIV>
<DIV> </DIV>
<DIV>I am used updating and modifying such a table in excel - making use of a lookup function would be fast - but on the machine I was working this afternoon they have MS-Office 2007 - and ... that does allow opening a dbf-file but not saving anymore as a dbf file.  Well OK one more good argument for not using MS-Office ...</DIV>
<DIV> </DIV>
<DIV>But, I have tried doing it with <EM><STRONG>OpenOffice Calc</STRONG></EM> - but that doesn't give me good results (some link between table and maps get lost and so thing get screwed up) - so in this case I simply reverted using old ArcView 3.2 where these operations can be done easily and without any of the abover described problems.  But of course, the purpose of me using qGIS is exactly that I want to offer to local government institutions in Mozambique a good and legal alternative for ArcView - which they can't afford paying for anyway ... hence my frustration and this writing.</DIV>
<DIV> </DIV>
<DIV>But, OK from this discussion I have taken the tip of trying it next time with <EM><STRONG>OpenOffice dbase</STRONG>  </EM>I must confess not having experience yet with that programme.</DIV>
<DIV> </DIV>
<DIV>If you'd have time giving more tips - I'll be greatful - It's a pity qGIS still fall short on such parts</DIV>
<DIV> </DIV>
<DIV>Regards </DIV>
<DIV> </DIV>
<DIV>Stefaan<BR> </DIV>
<P><FONT color=#007f40>_________________________________________________<BR><STRONG>Stefaan Dondeyne</STRONG> (PhD)<BR>Ecologist/Environmental Advisor<BR>CP 121 Chimoio - Mozambique<BR>Cell 82 733 24 14</FONT></P>
<P><FONT color=#007f40>_________________________________________________</FONT></P>
<P><A href="http://www.actf.gov.mz/reserva_chimanimani.html" target=_blank rel=nofollow><FONT face="courier, monaco, monospace, sans-serif" size=1>http://www.actf.gov.mz/reserva_chimanimani.html</FONT></A></P>
<P><A href="http://www.mozambiqueflora.com/index.php" target=_blank rel=nofollow><FONT face="courier, monaco, monospace, sans-serif" size=1>http://www.mozambiqueflora.com/index.php</FONT></A></P>
<P><A href="http://micaia.org/centre/micaia_family.html" target=_blank rel=nofollow><FONT face="courier, monaco, monospace, sans-serif" size=1>http://micaia.org/centre/micaia_family.html</FONT></A></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Paolo Cavallini <cavallini@faunalia.it><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> maning sambale <emmanuel.sambale@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> qgis-user@lists.osgeo.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, 3 November, 2008 14:26:48<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Qgis-user] Editing dbf attributes via Python Console<BR></FONT><BR>Why not using the table manager plugin?<BR>All the best.<BR>pc<BR><BR>> Here's my python console challenge for QGIS.<BR>><BR>> I need to edit the dbf attributes of a GRASS vector in QGIS.  I<BR>> usually load grass vectors in QGIS (via GRASS plugin).<BR><BR>-- <BR>Paolo Cavallini<BR><A href="http://faunalia.it/pc" target=_blank>http://faunalia.it/pc</A><BR><BR><BR>_______________________________________________<BR>Qgis-user mailing list<BR><A
 href="mailto:Qgis-user@lists.osgeo.org" ymailto="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target=_blank>http://lists.osgeo.org/mailman/listinfo/qgis-user</A><BR></DIV></DIV></div><br>


      </body></html>