Re: Finding points within 50 miles - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Finding points within 50 miles
Date
Msg-id 20050627152949.GC18785@wolff.to
Whole thread Raw
In response to Finding points within 50 miles  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
On Sun, Jun 26, 2005 at 16:40:03 -0700,
  CSN <cool_screen_name90001@yahoo.com> wrote:
> If I have a table of items with latitude and longitude
> coordinates, is it possible to find all other items
> that are within, say, 50 miles of an item, using the
> geometric functions
> (http://www.postgresql.org/docs/8.0/interactive/functions-geometry.html)?
> If so, how?

You could take a look at using the parts of the earthdistance contrib
module based on the cube data type. Gist indexes are supposed to make
this kind of query fast.

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Infix Function?
Next
From: Alvaro Herrera
Date:
Subject: Re: Web application development on Win32, deployment on Linux