Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cO5X3-0008VL-6n for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Jan 2017 16:32:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cO5X2-0002xZ-LP for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Jan 2017 16:32:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cO5WN-0001TA-1h for pgsql-bugs@postgresql.org; Mon, 02 Jan 2017 16:31:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cO5WK-0007Ko-0x for pgsql-bugs@postgresql.org; Mon, 02 Jan 2017 16:31:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v02GVYl1017881; Mon, 2 Jan 2017 11:31:34 -0500 From: Tom Lane To: Jyoti Leeka cc: pgsql-bugs@postgresql.org Subject: Re: Postgres returning in-correct results with ST_DWithin() In-reply-to: References: Comments: In-reply-to Jyoti Leeka message dated "Mon, 02 Jan 2017 15:32:45 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <17879.1483374694.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 02 Jan 2017 11:31:34 -0500 Message-ID: <17880.1483374694@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jyoti Leeka writes: > However, to my surprise I found that although A and B are separated from > each other by a distance greater than 50 km (50.995 km to be precise. Fou= nd > using Chris Veness's geodesy formulae=E2=80=8B ( > http://stackoverflow.com/questions/27461634/calculate-distance-between-a-= point-and-a-line-segment-in-latitude-and-longitude)), > yet they are returned by postgres as results. I think you need to ask about that on the Postgis mailing lists, not here. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs