[GRASSLIST:6558] RE: v.in.ascii: Dos text format

Hamish hamish_nospam at yahoo.com
Tue Apr 19 20:21:02 EDT 2005

> > 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)


More information about the grass-user mailing list