Hi, 2008/1/10, Benjamin Ducke <[EMAIL PROTECTED]>:
> following our discussion two days ago, I have started patching > v.in.ascii to support creating only an attribute table w/o > any vector objects/geometries. do you mean to simulate these steps: echo "1|2|3" | v.in.ascii out=x col="x double precision, y double precision, t int"; v.db.connect x -d; g.remove vect=x; echo "select * from x" | db.select ? Martin > > It seems the easiest way in terms of not modifying too much of > the original code is to be create a dummy vector map, creating > the table for it and then deleting only the geometries after import, > leaving the table intact. > > I have two questions about this: > > 1. Given that the user want to create a dbase table, where should > the resulting DBF file be placed? In the mapset's dbf directory? > > 2. Which C API command do I use to delete every element of a > vector map except the attribute table (Apparently, Vect_delete() > always deletes the table, too)? > > Thanks, > > Benjamin > _______________________________________________ > grass-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-dev > -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
