Added proper mapping of format and coordinate system.
This commit is contained in:
parent
a8ce6b01d6
commit
84c66b7c2e
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user