<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.2">
</HEAD>
<BODY>
Thanks for your comments.<BR>
<BR>
I rewrote my file like this:<BR>
&quot;X_COORDINATE&quot;,&quot;Y_COORDINATE&quot;<BR>
L 2 1<BR>
 3400630.04 5718486.603<BR>
 3400639.238 5718515.776<BR>
 1 1<BR>
L 2 1<BR>
 3400639.238 5718515.776<BR>
 3400648.641 5718546.057<BR>
 1 2<BR>
L 2 1<BR>
 3400648.641 5718546.057<BR>
 3400665.041 5718562.99<BR>
 1 3<BR>
L 2 1<BR>
 3400665.041 5718562.99<BR>
 3400625.996 5718597.349<BR>
 1 4<BR>
<BR>
Then I perform the import:<BR>
<BR>
GRASS 6.2.1 (luenenxy):~ &gt; v.in.ascii input=/home/jorge/GrassGIS/luenenxy/jorge/koord1.csv out=koord_grass format=standard --overwrite skip=1 cat=0 fs='space'<BR>
WARNUNG: Die Vektorkarte 'koord_grass' existiert bereits und wird<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#252;berschrieben.<BR>
Error reading ascii file:<BR>
[ ]<BR>
Erzeuge Topologie ...<BR>
4 primitives registriert<BR>
Building areas:&nbsp; 100%<BR>
0 Fl&#228;chen erstellt<BR>
0 Inselfl&#228;chen erstellt<BR>
F&#252;ge Inselfl&#228;chen hinzu:<BR>
F&#252;ge Zentroide hinzu: 100%<BR>
Die Topologie wurde erstellt.<BR>
Anzahl von Knoten&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 5<BR>
Anzahl von Primitives :&nbsp;&nbsp; 4<BR>
Anzahl von Punkten&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
Anzahl von Linien&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 4<BR>
Anzahl von Boundaries :&nbsp;&nbsp; 0<BR>
Anzahl von Zentroiden :&nbsp;&nbsp; 0<BR>
Anzahl von Fl&#228;chen&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
Anzahl von Inseln&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
GRASS 6.2.1 (luenenxy):~ &gt;&nbsp; <BR>
<BR>
It seems to recognise the entities in the file but what does this error message means ???<BR>
<BR>
Error reading ascii file:<BR>
[ ] ???&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
<BR>
Thanks in advace,<BR>
<BR>
Jorge<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
Am Donnerstag, den 08.03.2007, 23:17 +0100 schrieb Moritz Lennert: 
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On 08/03/07 18:00, Jorge Echeverri wrote:</FONT>
<FONT COLOR="#000000">&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; I have to admit that I am an absolute beginner in GRASS.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; I need to import vector data from a text-file with this format:</FONT>
<FONT COLOR="#000000">&gt; x-begin,y-begin,x-end,y-end</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Any suggestion?</FONT>

<FONT COLOR="#000000">v.in.ascii</FONT>

<FONT COLOR="#000000">You will have to transform your data (e.g. with awk) to fit the standard </FONT>
<FONT COLOR="#000000">format. Something like this (untested) should work:</FONT>

<FONT COLOR="#000000">awk -F&quot;,&quot; 'BEGIN{i=0} {i++;print &quot;L 2 1&quot;;print $1,$2,i;i++;print </FONT>
<FONT COLOR="#000000">$3,$4,i;print &quot;1&quot;}' YourFile | v.in.ascii -n format=standard </FONT>
<FONT COLOR="#000000">out=YourMapName fs=&quot; &quot;</FONT>

<FONT COLOR="#000000">See the v.in.ascii man page for details.</FONT>

<FONT COLOR="#000000">Moritz</FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Jorge Echeverri, BSc Civ. Eng.
S &amp; P CONSULT GMBH
Technologiequartier
Konrad-Zuse-Str. 6
D-44801 Bochum, Germany
Gesch&#228;ftsf&#252;hrer: Dipl.-Ing. Robert Stein
Registergericht: Amtsgericht Bochum HRB 10769


Phone:&nbsp;&nbsp;&nbsp; +49(0) 234 51 67 193
Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +49(0) 234 51 67 109

Email:&nbsp;&nbsp;&nbsp; <A HREF="mailto:jorge.echeverri@stein.de">jorge.echeverri@stein.de</A>
Internet: <A HREF="http://www.stein.de">www.stein.de</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>