[GRASS-dev] table only creation in v.in.ascii

Benjamin Ducke benjamin.ducke at ufg.uni-kiel.de
Thu Jan 10 03:51:51 EST 2008


Dear all,

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.

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


More information about the grass-dev mailing list