Return-Path: postarch
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA09798; Fri, 7 Feb 92 10:03:44 -0800
Message-Id: <9202071803.AA09798@postgres.Berkeley.EDU>
From: postarch (Postgres Mailing Archive)
Subject: Re: problem with point-in-polygon
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
In-Reply-To: Your message of "Fri, 07 Feb 92 14:49:35 +0700."
             <9202071344.AA07200@postgres.Berkeley.EDU> 
Date: Fri, 07 Feb 92 10:03:30 PST

you write:

> Some strange results are obtained with the point-in-polygon function
> (function name is on_ppath and operator is ---`).  For example:
> 
> Go
> * retrieve (test=("(0,0)"::point ---` "(1,3,0,1,1,1,1,0)"::path))\g
> 
> ---------------
> | test        |
> ---------------
> | t           |
> ---------------
> 
> This is not correct as (0,0) lies outside the triangle (0,1) (1,1) (1,0).
> The triangle lies in the upper-right corner of the unit-square.


This is a bug in the on_ppath() routine associated with the operator.


Jeff Meredith
mer@postgres.berkeley.edu
