pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Kasper Sandberg <kontakt@sandberg-consult.dk>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6556: earthdistance module has lacking documentation
Date: Thu, 29 Mar 2012 22:55:10 +1300
Message-ID: <4F74317E.9030402@archidevsys.co.nz> (raw)
In-Reply-To: <4F73A090.5000101@sandberg-consult.dk>
References: <E1SBxLx-00082X-4B@wrigleys.postgresql.org>
	<4F733FB80200002500046774@gw.wicourts.gov>
	<4F73A090.5000101@sandberg-consult.dk>

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:
>> <kontakt@sandberg-consult.dk>  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=f9002b... 
>>
>>
>> -Kevin
>
>
Should be 'metres' not 'meters'! :-)





view thread (4+ messages)

Message-ID: <4F74317E.9030402@archidevsys.co.nz>
Permalink:  ../4F74317E.9030402@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4F74317E.9030402@archidevsys.co.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: GavinFlower@archidevsys.co.nz, kontakt@sandberg-consult.dk, Kevin.Grittner@wicourts.gov
  Subject: Re: BUG #6556: earthdistance module has lacking documentation
  In-Reply-To: <4F74317E.9030402@archidevsys.co.nz>
  References: <E1SBxLx-00082X-4B@wrigleys.postgresql.org> <4F733FB80200002500046774@gw.wicourts.gov> <4F73A090.5000101@sandberg-consult.dk> <4F74317E.9030402@archidevsys.co.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox