Removed gdal_priv.h from include/osgTerrain/DataSet to remove the external dependency on
GDAL.
This commit is contained in:
@@ -34,10 +34,11 @@
|
||||
|
||||
#include <set>
|
||||
|
||||
#include <gdal_priv.h>
|
||||
|
||||
#include <osgTerrain/Export>
|
||||
|
||||
// forward declare so we can avoid tieing osgTerrain to GDAL.
|
||||
class GDALDataset;
|
||||
|
||||
namespace osgTerrain
|
||||
{
|
||||
|
||||
@@ -131,11 +132,7 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
|
||||
_hasGCPs(false),
|
||||
_gdalDataSet(0) {}
|
||||
|
||||
|
||||
virtual ~SourceData()
|
||||
{
|
||||
if (_gdalDataSet) GDALClose(_gdalDataSet);
|
||||
}
|
||||
virtual ~SourceData();
|
||||
|
||||
static SourceData* readData(Source* source);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user