Thanks, Jurgen,

Saving the table as dbf from R (just done with write.dbf(oldnewclass,file="oldnewclass.dbf") )
and using join worked very well. Problem solved.

Editing in OO is faster but I found that while back
in QGIS the new field is displayed in the table and in Properties/Atributes
(and you can base the symbology on it), the new field is not
print when you use the Identify Features tool on the display. Is
this a bug or a normal behavior? Perhaps some kind of updating of the vector object is required?

Regarding
"Given a recent GDAL (ie >=1.6) you don't need the table
manager to add fields to shapes anymore. GDAL and in turn QGIS can do it on it's own. "

How? There is no Add Field button in the Table even if you toggle Editing on.
Is this a new possibility open by GDAL that requires adding the feature
to the QGIS menu?

Agus

Jürgen E. Fischer wrote:
Hi Agus,

On Wed, 16. Sep 2009 at 19:04:11 +0200, Agustin Lobo wrote:
I have to add a column (field) to the table of a vector object and populate
it with values I have in a text file (resulting from a process in R).

If you can create a DBF file instead you could use fTools' "Join Attributes".
If that's not possible, you could probably use OpenOffice to create a DBF from
that file.


I know I can create an empty new field with Table Manager.

Just for the record.  Given a recent GDAL (ie >=1.6) you don't need the table
manager to add fields to shapes anymore.  GDAL and in turn QGIS can do it on
it's own.



Jürgen


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to