From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Tim Perdue <tim(at)perdue(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] Latitude / Longitude |
Date: | 2002-09-12 17:49:21 |
Message-ID: | 1031852961.380.20.camel@lerlaptop.iadfw.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Look at contrib/earthdistance, I **think** it does what you need.
LER
On Thu, 2002-09-12 at 12:44, Tim Perdue wrote:
> Hi Folks -
>
> I'm working on a global weather database for a client and have hit an issue
> which I'm sure has been solved before. Unfortunately, the site search doesn't
> pull up anything.
>
> Essentially, I've got two tables, one with city/county/lat/long and another
> with lat/long/weather data.
>
> None of the lat/longs in the two tables match up directly, so I can't do a
> simple join of the two tables. I need to join on closest proximity on the
> lat/long fields.
>
> Any suggestions? It seems to me this will be pretty expensive on CPU resources
> unless there's a really elegant trick uncovered.
>
> Tim
>
> --
> Founder - PHPBuilder.com / Geocrawler.com / SourceForge
> GPG Public Key: http://www.perdue.net/personal/pgp.php
> Perdue, Inc. / Immortal LLC
> 515-554-9520
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Hoffmann | 2002-09-12 19:19:01 | Re: [SQL] Latitude / Longitude |
Previous Message | Tim Perdue | 2002-09-12 17:44:26 | Latitude / Longitude |
From | Date | Subject | |
---|---|---|---|
Next Message | david williams | 2002-09-12 18:12:37 | Returning a reference to a cursor from a function |
Previous Message | Tim Perdue | 2002-09-12 17:44:26 | Latitude / Longitude |