<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>Re: GEOS Installation Testing Help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Darren Houston</FONT>
<BR><FONT SIZE=2>To: 'postgis-users@postgis.refractions.net'</FONT>
<BR><FONT SIZE=2>Sent: 12/5/03 12:23 AM</FONT>
<BR><FONT SIZE=2>Subject: Re: GEOS Installation Testing Help</FONT>
</P>

<P><FONT SIZE=2>Interesting.</FONT>
</P>

<P><FONT SIZE=2>From Steffen's suggestion I tried:</FONT>
</P>

<P><FONT SIZE=2>SELECT intersection('POINT(1 1)', 'POINT(1 1)');</FONT>
</P>

<P><FONT SIZE=2>and PostgreSQL/PostGIS returned:</FONT>
</P>

<P><FONT SIZE=2>SRID=-1;POINT(1 1)</FONT>
</P>

<P><FONT SIZE=2>Well, unless a PostGIS programmer says otherwise, or I'm given a Geos</FONT>
<BR><FONT SIZE=2>specific query that fails, I will almost definitely say that I have a</FONT>
<BR><FONT SIZE=2>working Geos 1.0 install (with PostGIS). My PostgreSQL 7.3X was</FONT>
<BR><FONT SIZE=2>installed fresh with my Linux operating system install (with no link to</FONT>
<BR><FONT SIZE=2>lstdc++). So, there is a way to get around having to re-install</FONT>
<BR><FONT SIZE=2>PostgreSQL from source.</FONT>
</P>

<P><FONT SIZE=2>I have also used other Geos functions such as boundry() buffer()</FONT>
<BR><FONT SIZE=2>isvalid() and issimple() with success.</FONT>
</P>

<P><FONT SIZE=2>Thank you Steffen for your query.</FONT>
</P>

<P><FONT SIZE=2>Darren H.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: postgis-users-bounces@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>To: PostGIS Users Discussion</FONT>
<BR><FONT SIZE=2>Sent: 12/5/03 12:31 AM</FONT>
<BR><FONT SIZE=2>Subject: Re: [postgis-users] GEOS Installation Testing Help</FONT>
</P>

<P><FONT SIZE=2>Darren,</FONT>
</P>

<P><FONT SIZE=2>> I tried;</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> SELECT geomunion(</FONT>
<BR><FONT SIZE=2>>         'GEOMETRYCOLLECTION(POINT(0 0), LINESTRING(1 1))',</FONT>
<BR><FONT SIZE=2>>         'POINT(0 0)'</FONT>
<BR><FONT SIZE=2>> );</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> and I received this error;</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> NOTICE:  IllegalArgumentException: This method does not support</FONT>
<BR><FONT SIZE=2>> GeometryCollection arguments</FONT>
<BR><FONT SIZE=2>> ERROR:  GEOS union() threw an error!</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> PostgreSQL isn't affected by the error.</FONT>
</P>

<P><FONT SIZE=2>It is correct and necessary that you receive this error. The test is</FONT>
<BR><FONT SIZE=2>looking</FONT>
<BR><FONT SIZE=2>for this error message. If it wouldn't be there, the PostgreSQL server</FONT>
<BR><FONT SIZE=2>backend most probably would crash.</FONT>
</P>

<P><FONT SIZE=2>Here's another simple query that tests for GEOS (but doesn't return</FONT>
<BR><FONT SIZE=2>an error message):</FONT>
</P>

<P><FONT SIZE=2>select intersection('POINT(1 1)', 'POINT(1 1)');</FONT>
</P>

<P><FONT SIZE=2>This should return POINT(1 1)</FONT>
</P>

<P><FONT SIZE=2>Steffen</FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>postgis-users mailing list</FONT>
<BR><FONT SIZE=2>postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2><A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
</P>

</BODY>
</HTML>