From: | Robert Heinen <rob(at)216software(dot)com> |
---|---|
To: | Andreas Kretschmer <andreas(at)a-kretschmer(dot)de> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: GPS coordinates problem |
Date: | 2019-10-08 11:57:07 |
Message-ID: | CAKQp+O=0=-HsLTiLNuKtpRaRfVj5dKp59g6z9qfM1FxwujhW9w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You can use the postgis extension:
create extension postgis;
Then you can create a geography coulmn
location geography( point, 4326)
and insert a lat /long as a point like this:
ST_GeographyFromText('SRID=4326;POINT(%(longitude)s %(latitude)s)'),
On Tue, Oct 8, 2019 at 1:30 PM Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
wrote:
>
>
> Am 08.10.19 um 12:50 schrieb Timmy Siu:
> > Now, I need Global Position System coordinates as a data type. How do
> > I define it in Postgresql 11 or 12?
>
> consider PostGIS.
>
>
> Regards, Andreas
>
> --
> 2ndQuadrant - The PostgreSQL Support Company.
> www.2ndQuadrant.com
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Shatamjeev Dewan | 2019-10-08 13:55:02 | RE: Declarative Range Partitioning Postgres 11 |
Previous Message | Andreas Kretschmer | 2019-10-08 11:30:47 | Re: GPS coordinates problem |