r.nikonov Posted November 13, 2015 Share Posted November 13, 2015 Hello Test code: g = new Unigine::Geodetic(); g.radius_a = 100; // a - ECF dvec3 vector dvec3 b = g.WGSToECF(g.ECFToWGS(a)); log.message(string(a)); log.message(string(b)); Result:4.5197 -8.45577 99.20564.5197 -8.45577 105.983 Why did double conversion to WGS and back change value so much? And why did it change only z coord? Link to comment
unclebob Posted November 17, 2015 Share Posted November 17, 2015 Hi there! It's not enough just to change one radius, you'll also have to recalculate all corresponding values such as eccentricity and flattening. So if you want to use WGS84 coordinates for another geoid then you need to adjust the formula. If you still want to use it for Earth then don't change the values as they're precalculated for Earth. Also, this conversion has an error so in order to reduce it you can choose WGS origin close to your ECF point. Link to comment
r.nikonov Posted November 27, 2015 Author Share Posted November 27, 2015 Thank you, unclebob Link to comment
Recommended Posts