Fixed lat/long ordering

This commit is contained in:
Robert Osfield 2008-05-13 18:28:26 +00:00
parent e28ae8c7f3
commit 5f443e75a9

View File

@ -276,7 +276,7 @@ protected:
void convertXYZToLatLongHeight(osg::EllipsoidModel* em, osg::Vec3d& v) void convertXYZToLatLongHeight(osg::EllipsoidModel* em, osg::Vec3d& v)
{ {
em->convertXYZToLatLongHeight(v.x(), v.y(), v.z(), em->convertXYZToLatLongHeight(v.x(), v.y(), v.z(),
v.x(), v.y(), v.z()); v.y(), v.x(), v.z());
v.x() = osg::RadiansToDegrees(v.x()); v.x() = osg::RadiansToDegrees(v.x());
v.y() = osg::RadiansToDegrees(v.y()); v.y() = osg::RadiansToDegrees(v.y());