[GRASS-user] import text file with v.in.ascii and include labels
Janet Choate
jsc.eco at gmail.com
Wed Mar 14 15:50:00 EDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120314/63169fa0/attachment.html
More information about the grass-user
mailing list