<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Has the srid been set for both geometries
and are they the same?</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net] <b><span
style='font-weight:bold'>On Behalf Of </span></b>René F. Viancos S.<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 16, 2006
3:33 PM<br>
<b><span style='font-weight:bold'>To:</span></b> PostGIS Users Discussion<br>
<b><span style='font-weight:bold'>Subject:</span></b> [postgis-users] Problem
with intersection from postgresql 8.0.7 to8.1.3 win32</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Dear users<br>
<br>
i have the following SQL sentence that work's fine with postgreSQL 8.0.7,
win32, and PostGIS<br>
<br>
SELECT DISTINCT(<span class=st0><span name=st id=st>intersection</span></span>((SELECT
collect(the_geom) FROM ejes_13<br>
WHERE nombre = 'BALMACEDA' AND nom_com1 = 'PUENTE ALTO'),(SELECT<br>
collect(the_geom) FROM ejes_13 WHERE nombre = 'EYZAGUIRRE' AND<br>
nom_com1 = 'PUENTE ALTO'))) FROM ejes_13 WHERE (nombre = 'BALMACEDA'<br>
OR nombre = 'EYZAGUIRRE') AND nom_com1 = 'PUENTE ALTO';<br>
<br>
this sql sentence give the point for the intersection of two streets, where
"ejes_13" is the table with the street geometry, "nombre"
is the field with the name of the street, and "nom_com1" is the field
with the town name. <br>
<br>
when i run this sentence in postgreSQL 8.1.3, win32, and PostGIS, the data
engine gives me the following error.<br>
<br>
ERROR: GEOS Intersection() threw an error!<br>
<br>
does somebody any ideas about this.....<br>
<br>
Regards<br>
<br>
<br>
-- <br>
René F. Viáncos S.<br>
Director de Geomática y TIC<br>
Vicerrectoría de Investigación y Desarrollo<br>
Universidad de Chile<br>
Tel (56-2) 632 62 09<br>
Cel (56 9) 933 72 66<br>
<a href="mailto:rviancos@uchile.cl">rviancos@uchile.cl</a><br>
<a href="mailto:rviancos@gmail.com">rviancos@gmail.com</a><br>
<a href="http://www.investigacion.uchile.cl">www.investigacion.uchile.cl</a> </span></font></p>

</div>

</body>

</html>