Re: Lat, Long, Alt conversion to X, Y, Z.

New Message Reply Date view Thread view Subject view Author view

ceti (ceti++at++worldnet.net)
Fri, 25 Oct 1996 09:18:54 +0100


>On Oct 22, 10:57am, Michael Campbell wrote:
>> Subject: Lat, Long, Alt conversion to X, Y, Z.
> convergance = cos( origin_lat * RADIANS_PER_DEGREE );
> /* compute this value once and cache it - it doesn't change */
>
> /* x,y,z units are now in _meters_ */
> x = (lon - origin_lon) * convergance * METERS_PER_DEGREE;
> y = (lat - origin_lat) * METERS_PER_DEGREE
> z = alt;

Ok If you don't search a real map matching with your 3D world and your DEM
this works and if the area is small it is as good and faster than other
mathematicals models.

But if you are searching the real match, you'll face problems that are the
geodethic earth model and the used projection.
( for instance , GPS is working mainly in WGS 84 that parsely fits with the
nautical maps, so you have to change its geodetic model for output)
This is a problem I've been already faced with, and you need a library to
cross convert your data. If you need more, I may help you for this because I
own a tool to do this.
==================================================================
      _/_/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/
    _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
   _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/
  _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
  _/_/ _/_/_/ _/_/_/ _/ _/_/_/ _/_/_/ _/ _/
                                                               
     BILLARD Olivier - Ingeneer R&D - C&I Software
     1 avenue de la mer - 44380 PORNICHET - FRANCE
     Tel: +33 2 40 11 68 72 Fax: +33 2 40 61 68 14
  Email: ceti++at++worldnet.net URL:http://www.worldnet.net/~ceti
=================================================================
                          \\\|||///
                         \\ - - //
                          ( ++at++ ++at++ )
       +----------------oOOo-(_)-oOOo----------------------+
| " We don't inherit the world from our ancestors, |
| it's only a loan from our children ." |
| Antoine de Saint Exupery. |
       +-------------------------Oooo----------------------+
                         oooO ( )
                        ( ) ) /
                         \ ( (_/
                          \_)

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:48 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.