[GRASS-dev] help file incorrect for v.in.ascii

I just tested something and found out that the helpfile is incorrect for v.in.ascii (although my often faulty memory was correct).

The helpfile says that you can specify which columns are used for the x and y coordinates. However, this generates an error.

I remembered that in the past, the x and y columns MUST be the the first 2. When we changed our text file to have x and y in columns 1 and 2, it reads the file fine.

We’re doing this with GRASS 6.3 on Windows AND Mac.

Michael


Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

I just tested something and found out that the helpfile is incorrect for
v.in.ascii (although my often faulty memory was correct).

The helpfile says that you can specify which columns are used for the x and
y coordinates.

this is correct.

However, this generates an error.

what's the error? sample input file?

I remembered that in the past, the x and y columns MUST be the the first 2.

nope, I've never heard of that. I ran it with x&y as columns 2&3 yesterday.

When we changed our text file to have x and y in columns 1 and 2, it reads
the file fine.

We¹re doing this with GRASS 6.3 on Windows AND Mac.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

On 11/9/07 12:43 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

I just tested something and found out that the helpfile is incorrect for
v.in.ascii (although my often faulty memory was correct).

The helpfile says that you can specify which columns are used for the x and
y coordinates.

this is correct.

However, this generates an error.

what's the error? sample input file?

The error is something about an incorrect number of columns. The file was a
very simple one for just 2 points

Originally

cat, x, y, string

When changed to

x, y, cat, string

it worked fine.

This was compiled from cvs 6.3 last week.

Michael

I remembered that in the past, the x and y columns MUST be the the first 2.

nope, I've never heard of that. I ran it with x&y as columns 2&3 yesterday.

When we changed our text file to have x and y in columns 1 and 2, it reads
the file fine.

We¹re doing this with GRASS 6.3 on Windows AND Mac.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

On 11/9/07 12:43 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

I just tested something and found out that the helpfile is incorrect for
v.in.ascii (although my often faulty memory was correct).

The helpfile says that you can specify which columns are used for the x and
y coordinates.

this is correct.

However, this generates an error.

what's the error? sample input file?

The error is something about an incorrect number of columns. The file was a
very simple one for just 2 points

Are you sure the column separator was defined correctly ? Whenever I got this error this was always the problem.

Moritz

Michael Barton wrote:

which columns are used for the x and y coordinates.

..

>> However, this generates an error.
>
> what's the error? sample input file?

The error is something about an incorrect number of columns. The file was a
very simple one for just 2 points

Originally

cat, x, y, string

When changed to

x, y, cat, string

it worked fine.

This was compiled from cvs 6.3 last week.

It is hard to know why without seeing a sample of the file that fails and the
exact command line used.

perhaps a stray extra or missing fs after the data on some line?

blank-but-for-fs line at the end of the file?

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

On 11/10/07 3:18 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:

Michael Barton wrote:

On 11/9/07 12:43 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

I just tested something and found out that the helpfile is incorrect for
v.in.ascii (although my often faulty memory was correct).

The helpfile says that you can specify which columns are used for the x and
y coordinates.

this is correct.

However, this generates an error.

what's the error? sample input file?

The error is something about an incorrect number of columns. The file was a
very simple one for just 2 points

Are you sure the column separator was defined correctly ? Whenever I got
this error this was always the problem.

Absolutely. We used the same column separator and same way of specifying it
in both cases.

Michael

Moritz

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

We'll test some more just to be sure.

Michael

On 11/10/07 4:44 AM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

which columns are used for the x and y coordinates.

..

However, this generates an error.

what's the error? sample input file?

The error is something about an incorrect number of columns. The file was a
very simple one for just 2 points

Originally

cat, x, y, string

When changed to

x, y, cat, string

it worked fine.

This was compiled from cvs 6.3 last week.

It is hard to know why without seeing a sample of the file that fails and the
exact command line used.

perhaps a stray extra or missing fs after the data on some line?

blank-but-for-fs line at the end of the file?

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton