[GRASS-user] v.in.ascii

Hamish hamish_b at yahoo.com
Tue Feb 3 16:10:29 EST 2009


Harald Hofmann wrote:

> What I mean is the header import in v.in.ascii.
> I have point data with chemical analysis in the attribute
> table. Every time I import a text file, containing these
> tables and using v.in.ascii, the header is not imported,
> which is quit annoying when you have 20 or 30 different
> parameters.

If you use the skip= option to pass over column heading lines,
you will find those lines saved in the map's metadata history.
View it with 'v.info -h'.

Lines after skip= number of rows which are commented (start with a "#")
will not be saved to the metadata history.

If you want the raw data column headings to become the attribute column
names in the database, you have to use the v.in.ascii columns= option.
Currently it is not automatically taken due to the free form allowance
for the input data. A bit of a pain, but you must define column type
anyway so a little cut&paste of the top line into a text editor gets
you close.


hope it helps,
Hamish



      



More information about the grass-user mailing list