<!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>
I had ask these questions to Maciek. For completeness I am sending them again to the forum along with his answers and new questions:<BR>
<BR>
I just imported:<BR>
&gt; <BR>
&gt; #'X_COORDINATE Y_COORDINATE'<BR>
&gt; L 2 1<BR>
&gt; 3400630.04 5718486.603 1982 2.88<BR>
&gt; 3400639.238 5718515.776 1982 2.88<BR>
&gt; 1 1<BR>
&gt; L 2 1<BR>
&gt; 3400639.238 5718515.776 1982 3.77<BR>
&gt; 3400648.641 5718546.057 1982 3.77<BR>
&gt; 1 182<BR>
&gt; L 2 1<BR>
&gt; 3400648.641 5718546.057 1982 4.7<BR>
&gt; 3400665.041 5718562.99 1982 4.7<BR>
&gt; 1 181<BR>
&gt; <BR>
&gt; both with and without -n and it worked in the same way.<BR>
&gt; <BR>
&gt; But now I have a question. This file contains not only coordinates but<BR>
&gt; also 2 attributes: &quot;Year&quot; and &quot;Depth&quot; in the columns 3 and 4. If I<BR>
&gt; follow the instructions of v.in.ascii manual:<BR>
&gt; <BR>
&gt; &quot;The coordinates are listed following the initial line containing the<BR>
&gt; primitive code, the total number of vectors in the series, and the<BR>
&gt; number of categories (1 for a single layer, higher for multiple layers).<BR>
&gt; Below that 1 or several lines follow to indicate the layer number and<BR>
&gt; the category number (ID).&quot;<BR>
&gt; <BR>
&gt; I rewrite my file like:<BR>
&gt; <BR>
&gt; #'X_COORDINATE Y_COORDINATE'<BR>
&gt; L 2 2<BR>
&gt; 3400630.04 5718486.603 1982 2.88<BR>
&gt; 3400639.238 5718515.776 1982 2.88<BR>
<BR>
I don't think you can import vector in standard format together with<BR>
it's attributes using v.in.ascii. It's possible only for points format.<BR>
In standard format, the &quot;1982 2.88&quot; etc. after x,y coordinates are<BR>
discarded.<BR>
<BR>
To add attributes to your lines vector created with v.in.ascii, you<BR>
would need to create the table separately (eg. a dbf with OO.org Calc<BR>
or OO.org Base, or using the db.execute to create the table and<BR>
populate it with values) and then attach it to your lines vector uisng<BR>
v.db.connect.<BR>
<BR>
To understand how categories and layers work, please refer to the<BR>
&quot;Vector data processing in GRASS GIS&quot; chapter of the manual.<BR>
<BR>
&gt; 2 1<BR>
&gt; L 2 2<BR>
&gt; 3400639.238 5718515.776 1982 3.77<BR>
&gt; 3400648.641 5718546.057 1982 3.77<BR>
&gt; 1 182<BR>
&gt; 2 182<BR>
&gt; L 2 2<BR>
&gt; 3400648.641 5718546.057 1982 4.7<BR>
&gt; 3400665.041 5718562.99 1982 4.7<BR>
&gt; 1 181<BR>
&gt; 2 181<BR>
&gt; <BR>
&gt; The last 2 in the first line for the number of attributes, isn't it? <BR>
&gt; And data are rightly imported:<BR>
&gt; <BR>
&gt; Erzeuge Topologie ...<BR>
&gt; 3 primitives registriert<BR>
&gt; Building areas:&nbsp; 100%<BR>
&gt; 0 Fl&#228;chen erstellt<BR>
&gt; 0 Inselfl&#228;chen erstellt<BR>
&gt; F&#252;ge Inselfl&#228;chen hinzu:<BR>
&gt; F&#252;ge Zentroide hinzu: 100%<BR>
&gt; Die Topologie wurde erstellt.<BR>
&gt; Anzahl von Knoten&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 4<BR>
&gt; Anzahl von Primitives :&nbsp;&nbsp; 3<BR>
&gt; Anzahl von Punkten&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
&gt; Anzahl von Linien&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 3<BR>
&gt; Anzahl von Boundaries :&nbsp;&nbsp; 0<BR>
&gt; Anzahl von Zentroiden :&nbsp;&nbsp; 0<BR>
&gt; Anzahl von Fl&#228;chen&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
&gt; Anzahl von Inseln&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
&gt; <BR>
&gt; But I have to admit, I'm still confused with the concept of layer and<BR>
&gt; category in GRASS; i.e., I wrote these lines:<BR>
&gt; 1 182<BR>
&gt; 2 182<BR>
&gt; Like first line1 for Layer 1 and 182 from original line ID of my data<BR>
&gt; and second line<BR>
&gt; and second line for Layer 2 and 182 from original line ID of my data<BR>
&gt; was this right?<BR>
<BR>
You propbaly mean this part:<BR>
<BR>
&gt; L 2 2<BR>
&gt; 3400648.641 5718546.057 1982 4.7<BR>
&gt; 3400665.041 5718562.99 1982 4.7<BR>
&gt; 1 181<BR>
&gt; 2 181<BR>
<BR>
If you wanted the given line, consinsted of 2 vertices, to have 2<BR>
attribute links (categories), one in the layer 1 and the other in layer<BR>
2, both with category number &quot;182&quot;, you did it right.<BR>
<BR>
<BR>
<FONT COLOR="#0000ff">Oh, I think I misunderstood the concept of category:</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Actually, what I want to do is to create layers 1 and 2 for each line and that those have attribute values in the fields &quot;Year&quot; and &quot;Depth&quot; in the table below:</FONT><BR>
<BR>
<FONT COLOR="#0000ff">L 2 2</FONT><BR>
<FONT COLOR="#0000ff">3400648.641 5718546.057 1982 4.7</FONT><BR>
<FONT COLOR="#0000ff">3400665.041 5718562.99 1982 4.7</FONT><BR>
<FONT COLOR="#0000ff">1 181</FONT><BR>
<FONT COLOR="#0000ff">2 181</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Table:</FONT><BR>
<FONT COLOR="#0000ff">LineID&nbsp;&nbsp;&nbsp; Year&nbsp;&nbsp;&nbsp; Depth&nbsp;&nbsp; </FONT><BR>
<FONT COLOR="#0000ff">1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1982&nbsp;&nbsp;&nbsp; 2.88</FONT><BR>
<FONT COLOR="#0000ff">182&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1982&nbsp;&nbsp;&nbsp; 3.77</FONT><BR>
<FONT COLOR="#0000ff">181&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1982&nbsp;&nbsp;&nbsp; 4.7</FONT><BR>
<BR>
<FONT COLOR="#0000ff">So I guess, I have to import the line geometry like</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp; </FONT><BR>
<FONT COLOR="#0000ff"> #'X_COORDINATE Y_COORDINATE'</FONT><BR>
<FONT COLOR="#0000ff">L 2 1</FONT><BR>
<FONT COLOR="#0000ff">3400630.04 5718486.603</FONT><BR>
<FONT COLOR="#0000ff">3400639.238 5718515.776</FONT><BR>
<FONT COLOR="#0000ff">1 2</FONT><BR>
<FONT COLOR="#0000ff">2 3</FONT><BR>
<FONT COLOR="#0000ff">L 2 1</FONT><BR>
<FONT COLOR="#0000ff">3400639.238 5718515.776</FONT><BR>
<FONT COLOR="#0000ff">3400648.641 5718546.057</FONT><BR>
<FONT COLOR="#0000ff">1 2</FONT><BR>
<FONT COLOR="#0000ff">2 3</FONT><BR>
<FONT COLOR="#0000ff">L 2 1</FONT><BR>
<FONT COLOR="#0000ff">3400648.641 5718546.057</FONT><BR>
<FONT COLOR="#0000ff">3400665.041 5718562.99</FONT><BR>
<FONT COLOR="#0000ff">1 2</FONT><BR>
<FONT COLOR="#0000ff">2 3</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Each line having layers 1 and 2 that connect to values in the categories 2 and 3.??</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Or from the example in v.in.ascii manual is still not so clear what the line below the data means???</FONT><BR>
<BR>
<FONT COLOR="#0000ff">ORGANIZATION: GRASS Development Team </FONT><BR>
<FONT COLOR="#0000ff">DIGIT DATE: 1/9/2005 </FONT><BR>
<FONT COLOR="#0000ff">DIGIT NAME: - </FONT><BR>
<FONT COLOR="#0000ff">MAP NAME: test </FONT><BR>
<FONT COLOR="#0000ff">MAP DATE: 2005 </FONT><BR>
<FONT COLOR="#0000ff">MAP SCALE: 10000 </FONT><BR>
<FONT COLOR="#0000ff">OTHER INFO: Test polygons </FONT><BR>
<FONT COLOR="#0000ff">ZONE: 0 </FONT><BR>
<FONT COLOR="#0000ff">MAP THRESH: 0.500000 </FONT><BR>
<FONT COLOR="#0000ff">VERTI: </FONT><BR>
<FONT COLOR="#0000ff">B 6 1 </FONT><BR>
<FONT COLOR="#0000ff">5958812.48844435 3400828.84221011 </FONT><BR>
<FONT COLOR="#0000ff">5958957.29887089 3400877.11235229 </FONT><BR>
<FONT COLOR="#0000ff">5959021.65906046 3400930.7458436 </FONT><BR>
<FONT COLOR="#0000ff">5959048.47580612 3400973.65263665 </FONT><BR>
<FONT COLOR="#0000ff">5959069.92920264 3401032.64947709 </FONT><BR>
<FONT COLOR="#0000ff">5958812.48844435 3400828.84221011 </FONT><BR>
<FONT COLOR="#0000ff">1 1 </FONT><BR>
<FONT COLOR="#0000ff">B 4 1 </FONT><BR>
<FONT COLOR="#0000ff">5959010.9323622 3401338.36037757 </FONT><BR>
<FONT COLOR="#0000ff">5959096.7459483 3401370.54047235 </FONT><BR>
<FONT COLOR="#0000ff">5959091.38259917 3401450.99070932 </FONT><BR>
<FONT COLOR="#0000ff">5959010.9323622 3401338.36037757 </FONT><BR>
<FONT COLOR="#0000ff">1 2</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Does it mean that the first boundary has the layer 1 related to the category with number ID 1 and the second boundary&nbsp; has the layer 1 related to the category 2 with number ID? It doesn't make much sense.</FONT><BR>
<BR>
<FONT COLOR="#0000ff">and then use v.db.connect to assign the geometric entities with the values in the table. But when I get through the v.db.connect&nbsp; manual is not clear to me how records and fields on the table are correctly assigned to the respective lines??</FONT><BR>
<BR>
<FONT COLOR="#0000ff">Jorge</FONT><BR>
<BR>
&gt; On the other hand how can I classify and visualise these data with<BR>
&gt; GRASS?<BR>
<BR>
d.vect, d.vect.thematic<BR>
<BR>
Both available via gis.m and d.m as well as from command line. There is<BR>
also QGIS which has nice thematic mapping capabilities and reads GRASS<BR>
vectors.<BR>
<BR>
P.S.<BR>
<BR>
Please don't ask question offlist. It's better to let others participate.<BR>
<BR>
Cheers,<BR>
Maciek<BR>
<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>