Return-Path: postarch Received: by postgres.Berkeley.EDU (5.61/1.29) id AA06763; Sun, 17 May 92 15:16:56 -0700 Message-Id: <9205172216.AA06763@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 Reply-To: joey@postgres.berkeley.edu In-Reply-To: Your message of "Fri, 07 Feb 92 14:49:35 +0700." <9202071344.AA07200@postgres.Berkeley.EDU> Date: Sun, 17 May 92 15:16:41 PDT Thank you for your bug report. This bug has been fixed, and the on_ppath() function should work correctly in the next release of postgres. Joe Hellerstein -------- you write: > Dear Postgres-group, > > 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 > > Query sent to backend is "retrieve (test=("(0,0)"::point ---` "(1,3,0,1,1,1,1 +,0) > "::path))" > --------------- > | 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. > > Kind regards, Peter van Oosterom.