From Jason Beverage,

"I've attached fixes to DataSet that should fix the problems that Maya was seeing yesterday.  The issue was that the new interpolation code I submitted didn't use the SourceData's georef, it was assuming that the GDALDataSet had a proper geo-ref.  I've made the getInterpolatedValue method a member of SourceData and now it uses the georef the SourceData's georef.

I also forward declared the GDALRasterBand class in the DataSet header."
This commit is contained in:
Robert Osfield
2006-07-31 20:56:22 +00:00
parent 564ee34f76
commit 5c4446dd5e
2 changed files with 24 additions and 14 deletions

View File

@@ -41,6 +41,7 @@
// forward declare so we can avoid tieing osgTerrain to GDAL.
class GDALDataset;
class GDALRasterBand;
namespace osgTerrain
{
@@ -248,6 +249,8 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
virtual void readHeightField(DestinationData& destination);
virtual void readModels(DestinationData& destination);
float getInterpolatedValue(GDALRasterBand *band, double x, double y);
Source* _source;
bool _hasGCPs;