Re: [SQL] Latitude / Longitude

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tim Perdue <tim(at)perdue(dot)net>
Cc: Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Latitude / Longitude
Date: 2002-09-13 15:19:11
Message-ID: 3D8201EF.CB5F3BD6@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Tim Perdue wrote:
>
> On Thu, Sep 12, 2002 at 12:49:21PM -0500, Larry Rosenman wrote:
> > Look at contrib/earthdistance, I **think** it does what you need.
>
> Thanks, yeah this starts to get me into the realm of what I need. It still
> has to run every possible permutation to figure out which one is closest for
> each postalcode. What I'll do is run that once and build a 3rd table which can
> be used to join the other two together using a view.

That third table should be maintained by triggers and
constraints, no?

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being
right. #
# Let's break this rule - forgive
me. #
#==================================================
JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sathish Vadhiyar 2002-09-13 15:39:23 user defined data types - help
Previous Message pkubat 2002-09-13 14:59:59 Case (in)-sensitivity & preserving case

Browse pgsql-sql by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-09-13 15:39:13 Re: sql group by statement
Previous Message Florian Mader 2002-09-13 14:49:48 Timestamp Fractions Problem