Updated to build against the move from osgTerrain::CoordinateSystem to

osg::CoordinateSystemNode.
This commit is contained in:
Robert Osfield
2004-04-29 22:23:55 +00:00
parent 0ba2d26b1a
commit 97bf993e5d

View File

@@ -92,15 +92,15 @@ osg::Matrixd computeGeoTransForRange(double xMin, double xMax, double yMin, doub
void ellipsodeTransformTest(double latitude, double longitude, double height)
{
osgTerrain::EllipsodeTransform transform;
osg::ref_ptr<osg::EllipsoidModel> transform = new osg::EllipsoidModel;
double X,Y,Z;
double newLat, newLong, newHeight;
transform.convertLatLongHeightToXYZ(latitude,longitude,height,
transform->convertLatLongHeightToXYZ(latitude,longitude,height,
X,Y,Z);
transform.convertXYZToLatLongHeight(X,Y,Z,
transform->convertXYZToLatLongHeight(X,Y,Z,
newLat,newLong,newHeight);
std::cout<<"lat = "<<osg::RadiansToDegrees(latitude)<<"\tlong="<<osg::RadiansToDegrees(longitude)<<"\t"<<height<<std::endl;