Re: locating cities within a radius of another

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Geoffrey <lists(at)serioustechnology(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: locating cities within a radius of another
Date: 2010-07-21 15:10:54
Message-ID: 4C470DFE.6020702@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/21/2010 8:01 AM, Geoffrey wrote:
> We need to locate all cities within a certain distance of a single city.
> We have longitude and latitude data for all cities. I was thinking
> postGIS was a viable solution, but I don't see a way to use our existing
> data via postGIS.
>
> Is postGIS a viable solution, or should I be looking at a different
> approach? Thanks for any suggestions or RTFM pointers.
>

I'd say PostGIS is a great option.

Did you try:

http://postgis.refractions.net/documentation/manual-1.5/ST_Distance_Sphere.html

or do you mean, how do I turn my lat, long columns into a geomentry column?

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2010-07-21 15:14:25 Re: transactions within stored procedures
Previous Message Martin Gainty 2010-07-21 13:45:52 Re: Oracle Spatial and PostGis