Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 90EDAD6F1EA for ; Thu, 29 Mar 2012 06:55:38 -0300 (ADT) Received: from mbx.knossos.net.nz ([202.160.48.10]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SDC4u-0007LV-Ge for pgsql-bugs@postgresql.org; Thu, 29 Mar 2012 09:55:38 +0000 Received: from [10.1.1.3] (60-234-150-59.bitstream.orcon.net.nz [60.234.150.59]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id q2T9tAC9030406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 29 Mar 2012 22:55:18 +1300 Message-ID: <4F74317E.9030402@archidevsys.co.nz> Date: Thu, 29 Mar 2012 22:55:10 +1300 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Kasper Sandberg CC: Kevin Grittner , pgsql-bugs@postgresql.org Subject: Re: BUG #6556: earthdistance module has lacking documentation References: <4F733FB80200002500046774@gw.wicourts.gov> <4F73A090.5000101@sandberg-consult.dk> In-Reply-To: <4F73A090.5000101@sandberg-consult.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/188 X-Sequence-Number: 32749 On 29/03/12 12:36, Kasper Sandberg wrote: > Yeah I will try provide a patch. > > I am not entirely certain how the wording should be, but I only > understood that the cube based aproach is by default in meters after > testing it out, though now of course it occurs to me that of course it > is, given the math involved and that earth() is in meters, but i still > feel that it should be pointed out that the cube based functions will, > by default, due to earth() using meters, be in meters. > > I will sleep on it a day or two and suggest a patch. > > On 28/03/12 23:43, Kevin Grittner wrote: >> wrote: >> >>> looking at >>> http://www.postgresql.org/docs/9.1/static/earthdistance.html >>> >>> it looks very scarce and missing, and conflicting, some things >>> operate based on miles, others meters. it also doesnt specify the >>> units used for earth_distance() which seems to be meters. >> >> Any chance you could submit a patch to the source file?: >> >> doc/src/sgml/earthdistance.sgml >> >> ... or, barring that, suggest particular language at particular >> line numbers in the source based on the gitweb page?: >> >> http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/earthdistance.sgml;h=f9002b235b83d8e2facd9164a66db46792f6e54a;hb=HEAD >> >> >> -Kevin > > Should be 'metres' not 'meters'! :-)