Re: [GENERAL] does GIS DMS data type already exist?

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: vandewal(at)dhc(dot)net
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] does GIS DMS data type already exist?
Date: 1999-11-13 18:03:15
Message-ID: Pine.GSO.4.02A.9911131858300.606-100000@Val.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Funny, just today I was thinking "Hmm, a DMS data type might be useful to
implement."

Right now there is no such thing (in the official sources anyway). Unless
you want to walk the long path of making up your own datatype (which we'd
appreciate, of course), you might be better off creating a conversion
function or two in the backend or letting the frontend handle the
conversion.

(Of course, if you do create conversion functions in the backend, you are
already half-way to having your own datatype.)

On second thought, perhaps you could abuse the time datatype. Of course
it's more like HMS, but perhaps you could make a spin off.

-Peter

On Sat, 13 Nov 1999 vandewal(at)dhc(dot)net wrote:

> Hey,
>
> I am builing a system that is going to be dealing with a large
> amount of GIS (geographic) data from USGS. Some of their data
> provides lattitude and longitude in the DMS (degrees minnutes seconds)
> format, other provides lat/lon in decimal format. The decimal is
> obviously not a problem for postgres, but the DMS is. I am going to
> need to be doing queries based on the DMS data, and will need it
> treated as numeric instead of just a text string.
>
> Soooo (to get to my question already!) what I want to know is
> whether anyone else has already coded up a data type to do this
> kind of thing or whether I just have to do it myself.
>
> I search around but didn't find one.
>
> Thanks for you time.
>
> dv
>
>
> // David E. Vandewalle | The best diplomat I know is a fully
> // vandewal(at)skyblue(dot)com | activated phaser bank.
> // david(dot)e(dot)vandewalle(at)lmco(dot)com | -- Scotty
>
> ************
>
>

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Larry Rosenman 1999-11-13 21:01:47 [ADMIN] 6.5.3/doesn't recognize localhost in pg_hba.conf
Previous Message vandewal 1999-11-13 17:56:10 does GIS DMS data type already exist?