Re: Derive latitude/longitude from integer values



turntableguy@xxxxxxxxx wrote:
I'm a software developer hired to work on a GIS application. My client
has an Access database they purchased a long time ago from some website
that no one remembers. The database contains a list of cities along
with their coordinates (latitude/longitude). I have to process the
coordinates as latitudes and longitudes, but the database has stored
them as signed integers (not decimals). I can't figure out the
conversion from integer to degress/minutes/seconds and was hoping
someone here can help me.

Here is some of the sample data:
(The 'ACTUAL' values displayed below are from a sample application that
shipped with the data, but we don't have the source code for it).

Austin, TX
ACTUAL: 30 17N, 97 44W
STORED IN DB: 3028, -9773

Berkeley, CA
ACTUAL: 37 52N, 122 16W
STORED IN DB: 3787, -12227

Birmingham, AL
ACTUAL: 33 31N, 86 48W
STORED IN DB: 3352, -8680

As you can see, the data provider seems to have encoded the degrees as
is (e.g. 30, 37, 97, 122). What I don't get is how you calculate the
minutes/seconds from the integer. For example, in Austin, TX above, how
do you figure 17 minutes (latitude) from 3028?

There are 60 minutes per degree, so in .28 degrees there are 17 minutes (0.28 * 60).


.



Relevant Pages

  • Re: Derive latitude/longitude from integer values
    ... The database contains a list of cities along ... >with their coordinates (latitude/longitude). ... >Here is some of the sample data: ... For example, in Austin, TX above, how ...
    (sci.geo.satellite-nav)
  • Derive latitude/longitude from integer values
    ... The database contains a list of cities along ... with their coordinates (latitude/longitude). ... Here is some of the sample data: ... For example, in Austin, TX above, how ...
    (sci.geo.satellite-nav)
  • Re: Derive latitude/longitude from integer values
    ... The database contains a list of cities along with their coordinates (latitude/longitude). ... the data provider seems to have encoded the degrees as ... For example, in Austin, TX above, how ...
    (sci.geo.satellite-nav)
  • SQL Server 2005 Express connection error?
    ... getting an "Unable to find the requested .Net Framework Data Provider. ... //Obtain the database connection string ... //Obtain a database specific connection object ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: large SELECT with ORDER BY very slow (only in ado.net)
    ... I have 4 million rows in my database. ... So if I do it in DAO ... seconds to iterate through the recordset. ... using OLE DB data provider with Ms Access. ...
    (microsoft.public.dotnet.general)