From 88d65263ec9184315dba993dcf304b2b874a463c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 7 Apr 2005 10:19:47 +0000 Subject: [PATCH] Fixed layer and levels handling in reprojection of source imagery. --- src/osgTerrain/DataSet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 159a6fb86..92375e6b8 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -1318,6 +1318,16 @@ DataSet::Source* DataSet::Source::doReproject(const std::string& filename, osg:: newSource->_filename = filename; newSource->_temporaryFile = true; newSource->_cs = cs; + + newSource->_coordinateSystemPolicy = _coordinateSystemPolicy; + newSource->_geoTransformPolicy = _geoTransformPolicy; + + newSource->_minLevel = _minLevel; + newSource->_maxLevel = _maxLevel; + newSource->_layer = _layer; + + newSource->_requiredResolutions = _requiredResolutions; + newSource->_numValuesX = nPixels; newSource->_numValuesY = nLines; newSource->_geoTransform.set( adfDstGeoTransform[1], adfDstGeoTransform[4], 0.0, 0.0,