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."
This commit is contained in:
parent
017a03ffe5
commit
09ebb061c2
@ -679,7 +679,8 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter
|
||||
|
||||
|
||||
double geoTransform[6];
|
||||
OSG_INFO << " GetGeoTransform == "<< dataset->GetGeoTransform(geoTransform)<<" == CE_None"<<std::endl;
|
||||
CPLErr err = dataset->GetGeoTransform(geoTransform);
|
||||
OSG_INFO << " GetGeoTransform == "<< err <<" == CE_None"<<std::endl;
|
||||
OSG_INFO << " GetGeoTransform "<< std::endl;
|
||||
OSG_INFO << " Origin = "<<geoTransform[0]<<" "<<geoTransform[3]<<std::endl;
|
||||
OSG_INFO << " Pixel X = "<<geoTransform[1]<<" "<<geoTransform[4]<<std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user