<html>
<head>
        <title></title>
        
<meta name="GENERATOR" content="MSHTML 8.00.6001.18812"></meta>
</head>

<body>
        
<div align="left">The problem is the vertex represented only in line 2 between your resulting line and point </div>
        
<div align="left">'POINT(618971.85092967 251568.179431664) . </div>
        
<div align="left">Because of precision aspects it will never be exactly on the line causing st_intersection find only the point and line to be exactly the same place.</div>
        
<div align="left"> </div>
        
<div align="left">/Nicklas<br />
                <br />
                2009-09-15 Düster Horst wrote:<br />
                <br />
                ></div>
        
<div><span style="FONT-SIZE: 10pt">I do have 2 simple linestrings which partly have the same geometry (see attached dump and image). My aim is to detect the common part of these two linestrings with the following query:</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">select st_intersection(a.the_geom, b.the_geom), a.myid</span><br />
                ><span style="FONT-SIZE: 10pt">from aline1, aline2</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">But as the result I get a geometrycollection with one POINT and one LINESTING. I expected one linestring. Is it a bug??</span><br />
                ><span style="FONT-SIZE: 10pt">I'll appreciate any hints.</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">My system:</span><br />
                ><span style="FONT-SIZE: 10pt">Postgis 1.4.0</span><br />
                ><span style="FONT-SIZE: 10pt">Geos 3.1.1</span><br />
                ><span style="FONT-SIZE: 10pt">Postgres 8.3.6</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">Best regards</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">Dr. Horst Düster</span><br />
                ><span style="FONT-SIZE: 10pt">Stv. Amtschef / GIS-Koordinator </span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">Kanton Solothurn</span><br />
                ><span style="FONT-SIZE: 10pt">Bau- und Justizdepartement</span><br />
                ><span style="FONT-SIZE: 10pt">Amt für Geoinformation</span><br />
                ><span style="FONT-SIZE: 10pt">SO!GIS Koordination</span><br />
                ><span style="FONT-SIZE: 10pt">Rötistrasse 4</span><br />
                ><span style="FONT-SIZE: 10pt">CH-4501 Solothurn</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">Telefon ++41(0)32 627 25 32</span><br />
                ><span style="FONT-SIZE: 10pt">Telefax ++41(0)32 627 22 14</span></div><br />
        >>
        
<div><span style="FONT-SIZE: 10pt">mailto:horst.duester@bd.so.ch</span><br />
                ><span style="FONT-SIZE: 10pt">www.agi.so.ch</span></div><br />
        >
</body>
</html>