I am new in Geographic area and would like to convert latitude and longitude coordinates into ECEF x,y coordinates so that I could do some linear calculation of line or circle equation. I was able to get the elevation of the coordinate using Google Maps Elevation API and it says that the value is local mean sea level (LMSL). Can I use this value as altitude for ECEF? Or should I also use the geoid height value from EGM2008 or combine both LMSL+geoid height as altitude?

Case in point:

Latitude = 52.394033° N = 52° 23' 38.52" N 
Longitude = 13.133462° E = 13° 8' 0.46" E 
GPS ellipsoidal height (Google elevation) = 42.27206802368164 (meters) 
Geoid height (EGM96) = 40.229 (meters) 

Which one I should use as altitude for ECEF?

up vote 1 down vote accepted

To convert from orthometric (vertical datum-based) heights to ellipsoidal heights, you need to add the geoid height to your Google Map elevations. I am not exactly sure how Google uses LMSL, it might simply be based on a local or national vertical datum (maybe like Normalhöhennull in Germany), but seeing that your data comes from Google Maps, using the EGM2008 as your geoid would be reasonable, the deviations between local mean sea levels and the global geoid-based sea level are usually within 1-2 meters, and Google Maps elevations are not perfect anyway.

Geoid heights vs Ellipsoidal heights

  • So in this case I should just use EGM2008 as the altitude? – Ihsan Haikal May 29 at 9:37
  • You need to add both Google Map and geoid heights. So in your example, the ellipsoidal height would be 42.272 + 40.229 = 82.501. Also keep in mind that the Google Map elevation is not an ellipsoidal height, it is an orthometric height (above sea level or local vertical datum) – FSimardGIS May 29 at 14:05

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.