Re: [GENERAL] storing latitude and longitude

2008-07-11 Thread Ivan Zolotukhin
Hello, Probably the simplest way is to use built-in point type and GiST index over box(point, point). You will be able to make flat geometrical calculations (e.g. distance with <-> operator) and retrieve data in the box given with index support. Regards, Ivan On Thu, Jul 10, 2008 at 9:25 PM, ma

Re: [GENERAL] storing latitude and longitude

2008-07-10 Thread Gregory Williamson
pgsql-general@postgresql.org Subject: Re: [GENERAL] storing latitude and longitude Hi Mark, Look at Postgis, to do this properly. It adds full OGC spec support for managing spatial/querying spatial data within a Postgres database. It is an option included with the Windows Postgres installer,

Re: [GENERAL] storing latitude and longitude

2008-07-10 Thread Brent Wood
Hi Mark, Look at Postgis, to do this properly. It adds full OGC spec support for managing spatial/querying spatial data within a Postgres database. It is an option included with the Windows Postgres installer, but is generally extra packages under Linux. Cheers, Brent Wood >>> mark <[EM

Re: [GENERAL] storing latitude and longitude

2008-07-10 Thread Ismael Almaraz Ezparza
Sorry I'm not of much help but... did you check the data types page? http://postgresql.mirrors-r-us.net/docs/8.2/interactive/datatype-geometric.html http://postgresql.mirrors-r-us.net/docs/8.2/interactive/datatype-numeric.html That mainly depends on how many digits you need to store, if that's no