[GRASS-user] import text file with v.in.ascii and include labels

Hi users,
i am attempting to import a text file of coordinates and labels with v.in.ascii. i have tried the examples on the v.in.ascii help page, and looked through other posts, but still not getting it to do what i want. my text file looks like this:

1|559347.1111085|4895479.776597|LookoutCreek
2|559279.5226510|4895169.852562|WS1
3|560325.4430751|4895698.527786|WS2
4|560467.7144132|4896524.618672|WS3
5|565396.9513978|4901244.968000|WS6
6|565824.8472813|4901596.866088|WS7
7|566182.9298567|4901784.539545|WS8
8|566510.6331791|4896570.311094|Mackcreek

if i run it with:

v.in.ascii input=gages.txt output=gages x=2 y=3 cat=1

the point vector map is successfully created and given the category numbers in the first column of the text file

however, what i want are the label names in the 4th column to be attached to the points.

per the manual page, i have tried:

cat gages.txt | v.in.ascii out=gages x=2 y=3 cat=1 \ columns=‘x double precision, y double precision, cat int, name varchar(15)’
but i get the error
Sorry, < columns> is not a valid parameter

i have looked at v.label, v.edit, v.digit - but can’t figure out how to get what i want.

can anyone please give me some guidance on this, it would be greatly appreciated.
thank you,
Janet

On 14.03.2012 20:50, Janet Choate wrote:

cat gages.txt | v.in.ascii out=gages x=2 y=3 cat=1 \ columns='x double precision, y double precision, cat int, name varchar(15)'

Hi Janet,

I think your command is just mixed up a little. Try:

cat gages.txt | v.in.ascii out=gages x=3 y=2 cat=1 columns='cat integer, y double precision, x double precision, name varchar(15)'

The backslash before columns is missing. Also the columns should be in correct order. And I think column 2 is y and column 3 is x.

Falko