[GRASSLIST:6551] v.in.ascii: Dos text format

Hi,

I ran the following command in Cygwin/Grass60:

v.in.ascii input=vectordata output=myvector

where vectordata was:

230092.881535|2417442.264625|Name

This generated a WARNING: Dos text format found,...

It appears that it correctly generated the vector, but is the "Dos text format..." going to be a problem a some point?

Thanks.

M

I have also occasionally run into this warning, but haven't noticed any
problems with the data. Alternatively you can open your files in something
like nedit or another unix text editor and save it as a unix file.

Good luck.
Teague

Teague O'Mara
Department of Anthropology
Arizona State University
Box 872402
Tempe, AZ 85287-2402
480.965.6213
  
-----Original Message-----
From: owner-GRASSLIST@baylor.edu [mailto:owner-GRASSLIST@baylor.edu] On
Behalf Of Martin du Saire
Sent: Tuesday, April 19, 2005 10:54 AM
To: GRASSLIST@baylor.edu
Subject: [GRASSLIST:6551] v.in.ascii: Dos text format

Hi,

I ran the following command in Cygwin/Grass60:

v.in.ascii input=vectordata output=myvector

where vectordata was:

230092.881535|2417442.264625|Name

This generated a WARNING: Dos text format found,...

It appears that it correctly generated the vector, but is the "Dos text
format..." going to be a problem a some point?

Thanks.

M

> I ran the following command in Cygwin/Grass60:
>
> v.in.ascii input=vectordata output=myvector
>
> where vectordata was:
>
> 230092.881535|2417442.264625|Name
>
> This generated a WARNING: Dos text format found,...
>
> It appears that it correctly generated the vector, but is the "Dos
> text format..." going to be a problem a some point?

I have also occasionally run into this warning, but haven't noticed
any problems with the data. Alternatively you can open your files in
something like nedit or another unix text editor and save it as a unix
file.

The warning is just informational, no harm. While v.in.ascii will handle
DOS format text files as input, many other modules in 5.4, 6.0.0 will
not, and MacOS9 format text files will usually fail. So it would be good
practice to make text files you want to use with GRASS into UNIX format
first, as with dos2unix or text editors like nedit, TextPad, or BBedit
as others have suggested.. but as you've noticed v.in.ascii will deal
with DOS format ok.

GRASS 6.1+ will have better support for all three newline formats and
that warning is removed. (already done)

Hamish