Added proper mapping of format and coordinate system.

This commit is contained in:
Robert Osfield 2004-06-09 15:06:19 +00:00
parent a8ce6b01d6
commit 84c66b7c2e

View File

@ -3470,10 +3470,9 @@ osg::Node* DataSet::decorateWithCoordinateSystemNode(osg::Node* subgraph)
if (_destinationCoordinateSystem->getCoordinateSystem().empty()) if (_destinationCoordinateSystem->getCoordinateSystem().empty())
return subgraph; return subgraph;
osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode; osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode(
_destinationCoordinateSystem->getFormat(),
// copy the destinate coordinate system string. _destinationCoordinateSystem->getCoordinateSystem());
csn->setCoordinateSystem(_destinationCoordinateSystem->getCoordinateSystem());
// set the ellipsoid model if geocentric coords are used. // set the ellipsoid model if geocentric coords are used.
if (getConvertFromGeographicToGeocentric()) csn->setEllipsoidModel(getEllipsoidModel()); if (getConvertFromGeographicToGeocentric()) csn->setEllipsoidModel(getEllipsoidModel());