From 09ebb061c226b29a65c3682b039333f0e4a83a94 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 11 Dec 2010 15:12:09 +0000 Subject: [PATCH] From Cedric Pinson, "Here a small fix about gdal plugin used to read dem file, if you dont setup the log level to INFO it does not work. It's because of this line: OSG_INFO << " GetGeoTransform == "<< dataset->GetGeoTransform(geoTransform)<<" I have just put the function outside of an stream stuff, and it works. It's possible we have other code like that in other plugins, I guess it's a side effect of the MACRO stuff about notification." --- src/osgPlugins/gdal/ReaderWriterGDAL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/gdal/ReaderWriterGDAL.cpp b/src/osgPlugins/gdal/ReaderWriterGDAL.cpp index 339315534..ba5dfac7e 100644 --- a/src/osgPlugins/gdal/ReaderWriterGDAL.cpp +++ b/src/osgPlugins/gdal/ReaderWriterGDAL.cpp @@ -679,7 +679,8 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter double geoTransform[6]; - OSG_INFO << " GetGeoTransform == "<< dataset->GetGeoTransform(geoTransform)<<" == CE_None"<GetGeoTransform(geoTransform); + OSG_INFO << " GetGeoTransform == "<< err <<" == CE_None"<