| От | Bruno Wolff III |
|---|---|
| Тема | Re: Storing latitude and longitude |
| Дата | |
| Msg-id | 20050204135949.GB18206@wolff.to обсуждение исходный текст |
| Ответ на | Storing latitude and longitude ("Rodolfo J. Paiz" <rpaiz@simpaticus.com>) |
| Список | pgsql-novice |
On Thu, Feb 03, 2005 at 18:31:45 -0600, "Rodolfo J. Paiz" <rpaiz@simpaticus.com> wrote: > Hi: > > One of my tables will store latitude and longitude information. I've > checked and I cannot see a datatype for that (which is no surprise, and > no loss). However, I can think of three ways to store the data: The earthdistance contrib module has a domain defined over the base type cube (and contrib module) that can be used to store points on the surface of a 3D sphere. The coordinates are stored in double precision, which should be good enough for your requirements/ It shouldn't be too hard to have your application convert from DMS to fractional degrees on input and output.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера