Re: point(lseg,lseg) does not exist

From: Don Isgitt <djisgitt(at)soundenergy(dot)com>
To: Shane <shane-pgsql(at)cm(dot)nu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: point(lseg,lseg) does not exist
Date: 2005-07-18 18:24:25
Message-ID: 42DBF3D9.8070809@soundenergy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Shane wrote:

>Hi,
>
>I am attempting a query using lseg values to find the point
>of intersection. The following query taken from the PG
>manual isn't working over here.
>
>select
>point(lseg '((-1,0),(1,0))', lseg
>'((-2,-2),(2,2))')
>ERROR: function point(lseg, lseg) does not exist
>HINT: No function matches the given name and argument
>types. You may need to add explicit type casts.
>
>Do I need to declare this function somewhere? Pg version
>7.4.7 (debian rev 6 Sarge).
>
>Best regards,
>Shane
>
>
>

Shane,

The operator for determining the intersection of two lsegs is #; thus,

select lseg # lseg

and the result is the intersection point.

Don

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paul Thomas 2005-07-18 18:58:08 Re: How to find the number of rows deleted
Previous Message Luiz Fernando de Menezes Calabria 2005-07-18 18:24:23 unsubscribe