Hi fellow wiki editors!
To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).
I have tried to keep the template short, but meaningful. /Johan G
Difference between revisions of "Geographic Coordinate Systems"
RalfGerlich (Talk  contribs) m (Typo) 
m (External link: Closedform transformation between geodetic and ellipsoidal coordinates) 

Line 32:  Line 32:  
Further, the classes <code>SGGeod</code> and <code>SGGeoc</code> (found in <code>simgear/math/SGGeod.hxx</code> and <code>simgear/math/SGGeoc.hxx</code>, respectively) provide static conversion methods for convenience, which use the methods listed above.  Further, the classes <code>SGGeod</code> and <code>SGGeoc</code> (found in <code>simgear/math/SGGeod.hxx</code> and <code>simgear/math/SGGeoc.hxx</code>, respectively) provide static conversion methods for convenience, which use the methods listed above.  
−  Note that most of these conversions are expensive to compute.  +  Note that most of these conversions are expensive to compute  check the external links to see how it works. 
+  ==External links==  
+  * [http://www.cage.curtin.edu.au/~sten/pubs/feaw2008.pdf Closedform transformation between geodetic and ellipsoidal coordinates]  
{{Terra}}  {{Terra}}  
[[Category:Scenery enhancement]]  [[Category:Scenery enhancement]] 
Revision as of 06:16, 22 September 2009
FlightGear uses a set of different coordinate systems to express geographic locations. All these coordinates are based on the WGS84 Ellipsoid.
Contents
Geocentric and Geodetic Coordinates
Both geocentric and geodetic coordinates are expressed as a triple of latitude, longitude and altitude. In both cases, altitude is the height of the respective point above the surface of the Ellipsoid and longitude is the angle between the planes parallel to the earth axis and passing through the Greenwich Meridian respectively the point designated by the coordinates.
The difference between geocentric and geodetic coordinates lies in the definition of latitude:
 In geocentric coordinates latitude is the angle between the equatorial plane and the line crossing through the earth's center and the point designated by the coordinates.
 In geodetic coordinates latitude is the angle between the equatorial plane and the normal at the designated point, i.e. the vector standing perpendicular on the Ellipsoid at the designated point.
Cartesian Geocentric Coordinates
Cartesian geocentric coordinates are defined in terms of a cartesian coordinate system with
 the center of the earth being the origin,
 the zaxis aligned with the earth axis pointing north,
 the xaxis going through the Greenwich Meridian at its intersection with the equator, and
 the yaxis going through the intersection of the meridian at 90 degrees east and the equator.
Conversion
The SimGear library provides static methods for conversion in the class SGGeodesy
, to be found in simgear/math/SGGeodesy.hxx
:

SGGeodesy::SGCartToGeod(const SGVec3<double>& cart, SGGeod& geod)
converts a cartesian point to geodetic coordinates. 
SGGeodesy::SGGeodToCart(const SGGeod& geod, SGVec3<double>& cart)
converts a geodetic point to cartesian coordinates. 
SGGeodesy::SGCartToGeoc(const SGVec3<double>& cart, SGGeoc& geoc)
converts a cartesian point to geocentric coordinates. 
SGGeodesy::SGGeocToCart(const SGGeoc& geoc, SGVec3<double>& cart)
converts a geocentric point to cartesian coordinates.
Further, the classes SGGeod
and SGGeoc
(found in simgear/math/SGGeod.hxx
and simgear/math/SGGeoc.hxx
, respectively) provide static conversion methods for convenience, which use the methods listed above.
Note that most of these conversions are expensive to compute  check the external links to see how it works.
External links
