[GRASSLIST:10832] Re: v.in.ascii error

Hamish hamish_nospam at yahoo.com
Wed Mar 8 17:32:44 EST 2006


> I think your command should look something like this:
> 
> v.in.ascii input=/home/pierluigi/Desktop/zinc output=zinc format=point
> fs=| columns='x double, y double, ppm double' x=1 y=2

>From the command line yes, but quote the pipe (|).

so if you try:

G6> v.in.ascii input=/home/pierluigi/Desktop/zinc output=zinc \
  format=point fs='|' columns='x double, y double, ppm double' x=1 y=2

It should be ok. The shell needs to be protected from special chars 
(pipe is the redirect command) and also needs to be told that multiword
answers belong with a single option. The GUI and SQL don't need to be
protected as such.

If you are running from the GUI, you should not quote the pipe (|) or
the column names/types:

> SQL parser error in statement:
> create table zinc ( cat integer, 'x double precision, y double 
>  precision, ppm double precision' )

The ' before the x and after precision should not be there. You are 
quoting too much.


> I realised that the gui of v.in.ascii usually puts together the
> command incorrectly, so I always use the cli to import ascii files.

How so? If it is broken we can fix it, but I don't think it is broken.


Hamish




More information about the grass-user mailing list