<!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>
Hi,<BR>
<BR>
I imported this file with v.in.ascii:<BR>
#'X_COORDINATE', 'Y_COORDINATE'<BR>
L 2 3<BR>
3400630.04 5718486.603<BR>
3400639.238 5718515.776<BR>
1 3<BR>
2 4<BR>
3 10<BR>
L 2 3<BR>
3400639.238 5718515.776<BR>
3400648.641 5718546.057<BR>
1 3<BR>
2 4<BR>
3 10<BR>
L 2 3<BR>
3400648.641 5718546.057<BR>
3400665.041 5718562.99<BR>
1 3<BR>
2 4<BR>
3 10<BR>
An created the vector map: koord_grass3<BR>
Then I connected to a database with this result:<BR>
GRASS 6.2.1 (luenenxy):~ &gt; db.connect -p<BR>
driver:dbf<BR>
database:/home/jorge/GrassGIS/luenenxy/jorge/dbf/<BR>
schema:GIS_Darstellung<BR>
group:(null)<BR>
<BR>
I connected layers 1 and 2 with Attributes 'Baujahr' and 'MTiefe' respectively<BR>
<BR>
GRASS 6.2.1 (luenenxy):~ &gt; v.db.connect map=koord_grass3 table=GIS_Darstellung database=/home/jorge/GrassGIS/luenenxy/jorge/dbf key=Baujahr layer=1<BR>
WARNUNG: The table &lt;GIS_Darstellung&gt; is now part of vector map<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;koord_grass3&gt; and may be deleted or overwritten by GRASS modules<BR>
WARNUNG: Select privileges were granted on the table<BR>
GRASS 6.2.1 (luenenxy):~ &gt; v.db.connect map=koord_grass3 table=GIS_Darstellung database=/home/jorge/GrassGIS/luenenxy/jorge/dbf key=MTiefejahr layer=2<BR>
<BR>
When I check the columns I get the surprise that not all data types are what they should be.<BR>
GRASS 6.2.1 (luenenxy):~ &gt; v.db.connect -c map=koord_grass3<BR>
DOUBLE PRECISION|SECTION_ID<BR>
CHARACTER|X_ANFANG<BR>
DOUBLE PRECISION|Y_ANFANG<BR>
DOUBLE PRECISION|X_ENDE<BR>
DOUBLE PRECISION|Y_ENDE<BR>
DOUBLE PRECISION|BAUJAHR<BR>
CHARACTER|LAENGE<BR>
CHARACTER|GEBIET<BR>
CHARACTER|MTIEFE<BR>
DOUBLE PRECISION|KNUTZUNG<BR>
CHARACTER|MATERIAL<BR>
DOUBLE PRECISION|PART<BR>
DOUBLE PRECISION|PBREITE<BR>
DOUBLE PRECISION|PHOEHE<BR>
DOUBLE PRECISION|ANALYSIS_C<BR>
DOUBLE PRECISION|ID_INSP<BR>
CHARACTER|INSPDATE<BR>
I guessed something went wrong while exporting the data from MySQL but I carefully repeated the export and got again the same problem below when I run execute v.extract<BR>
<BR>
GRASS_INFO_WARNING(10627,1): Die Vektorkarte 'koord_grass3_Baujahr' existiert bereits und wird &#252;berschrieben.<BR>
Erzeuge Topologie ...<BR>
Registriere Linien...<BR>
3 primitives registriert <BR>
Building areas: <BR>
<BR>
<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:<BR>
<BR>
Die Topologie wurde erstellt.<BR>
Anzahl von Knoten&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 4<BR>
Anzahl von Primitives :&nbsp;&nbsp; 3<BR>
Anzahl von Punkten&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 0<BR>
Anzahl von Linien&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp; 3<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>
<BR>
GRASS_INFO_MESSAGE(10627,2): Schreibe Attribute...<BR>
<BR>
GRASS_INFO_MESSAGE(10627,3): Layer 1<BR>
<BR>
GRASS_INFO_ERROR(10627,4): Column 'BAUJAHR' is not integer<BR>
<BR>
Any suggestions?<BR>
<BR>
Thanks in advance<BR>
<BR>
Am Montag, den 19.03.2007, 18:03 +1200 schrieb Hamish: 
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Jorge Echeverri wrote:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; So I guess, I have to import the line geometry like</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;  #'X_COORDINATE Y_COORDINATE'</FONT>
<FONT COLOR="#000000">&gt; L 2 1</FONT>
<FONT COLOR="#000000">&gt; 3400630.04 5718486.603</FONT>
<FONT COLOR="#000000">&gt; 3400639.238 5718515.776</FONT>
<FONT COLOR="#000000">&gt; 1 2</FONT>

<FONT COLOR="#000000">if you comment out a line, the hash (#) mark should be the first</FONT>
<FONT COLOR="#000000">character on the line, no spaces.</FONT>

<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">&gt; Or from the example in v.in.ascii manual is still not so clear what</FONT>
<FONT COLOR="#000000">&gt; the line below the data means???</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; ORGANIZATION: GRASS Development Team </FONT>
<FONT COLOR="#000000">&gt; DIGIT DATE: 1/9/2005 </FONT>
<FONT COLOR="#000000">&gt; DIGIT NAME: - </FONT>
<FONT COLOR="#000000">&gt; MAP NAME: test </FONT>
<FONT COLOR="#000000">&gt; MAP DATE: 2005 </FONT>
<FONT COLOR="#000000">&gt; MAP SCALE: 10000 </FONT>
<FONT COLOR="#000000">&gt; OTHER INFO: Test polygons </FONT>
<FONT COLOR="#000000">&gt; ZONE: 0 </FONT>
<FONT COLOR="#000000">&gt; MAP THRESH: 0.500000 </FONT>
<FONT COLOR="#000000">&gt; VERTI: </FONT>

<FONT COLOR="#000000">(you skip the above with the -n flag)</FONT>


<FONT COLOR="#000000">I don't know much about multi-layers, so can't answer those questions.</FONT>


<FONT COLOR="#000000">Hamish</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>