[GRASS-dev] table only creation in v.in.ascii
Martin Landa
landa.martin at gmail.com
Thu Jan 10 08:00:56 EST 2008
Hi,
2008/1/10, Benjamin Ducke <benjamin.ducke at ufg.uni-kiel.de>:
> 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
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
--
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev
mailing list