Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id D024D9FA5DC for ; Thu, 19 Oct 2006 23:54:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 64718-06 for ; Fri, 20 Oct 2006 02:54:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 6CA9D9FA2EC for ; Thu, 19 Oct 2006 23:54:04 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id k9K2rut1011299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Oct 2006 20:53:59 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id k9K2rumg022223; Thu, 19 Oct 2006 20:53:56 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id k9K2rtFp022222; Thu, 19 Oct 2006 20:53:55 -0600 (MDT) (envelope-from mfuhr) Date: Thu, 19 Oct 2006 20:53:55 -0600 From: Michael Fuhr To: Sandeep Kumar Jakkaraju Cc: Postgresql Subject: Re: PostGIS Message-ID: <20061020025355.GA22119@winnie.fuhr.org> References: <013e01c6f390$7d474220$8e904618@owner> <4F3EB224-4B1A-4E1D-A364-F4477B21E62E@me3.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=SPF_PASS, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200610/1038 X-Sequence-Number: 102564 On Thu, Oct 19, 2006 at 09:31:40PM +0530, Sandeep Kumar Jakkaraju wrote: > I use postgis to wipe my ASS ... > no good documentation ... If you find the documentation lacking then please consider posting to postgis-users with suggestions for improving it. Even better, submit a patch :-) > in what units is the result of distance(geometry,geometry).. http://postgis.refractions.net/docs/ch06.html#id2526205 "Return the cartesian distance between two geometries in projected units." If the geometries are in degrees then distance() returns degrees; if they're in meters then distance() returns meters; if they're in cubits then distance() returns cubits. > what is distance_sphere(geometry,geometry).. http://postgis.refractions.net/docs/ch06.html#id2528534 "Returns linear distance in meters between two lat/lon points." > when u give same geometry as both parameters it gives a non-zero > value .... test=> SELECT distance(GeomFromText('POINT(12 34)'), GeomFromText('POINT(12 34)')); distance ---------- 0 (1 row) test=> SELECT distance_sphere(GeomFromText('POINT(12 34)'), GeomFromText('POINT(12 34)')); distance_sphere ----------------- 0 (1 row) If you're getting unexpected behavior then please post a test case to postgis-users. -- Michael Fuhr