diff --git a/src/osgPlugins/gdal/ReaderWriterGDAL.cpp b/src/osgPlugins/gdal/ReaderWriterGDAL.cpp index 28c992f4d..0150aeb66 100644 --- a/src/osgPlugins/gdal/ReaderWriterGDAL.cpp +++ b/src/osgPlugins/gdal/ReaderWriterGDAL.cpp @@ -38,8 +38,10 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter int destX = 0; int destY = 0; - int destWidth = osg::minimum(dataWidth,1024); - int destHeight = osg::minimum(dataHeight,1024); + int destWidth = osg::minimum(dataWidth,1024); + int destHeight = osg::minimum(dataHeight,1024); +// int destWidth = osg::minimum(dataWidth,4096); +// int destHeight = osg::minimum(dataHeight,4096); osgDB::ImageOptions::TexCoordRange* texCoordRange = 0; @@ -128,7 +130,7 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter double geoTransform[6]; - if (dataset->GetGeoTransform(geoTransform)!=CE_None) + if (dataset->GetGeoTransform(geoTransform)==CE_None) { std::cout << " GetGeoTransform "<< std::endl; std::cout << " Origin = "<GetGeoTransform(geoTransform)!=CE_None) - { - std::cout << " GetGeoTransform "<< std::endl; - std::cout << " Origin = "<GetGeoTransform(geoTransform)<<" == CE_None"<GetGCPCount()<GetRasterCount(); @@ -472,6 +491,16 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter std::cout << " DataTypeName() = "<< GDALGetDataTypeName(band->GetRasterDataType())<GetColorInterpretation()==GCI_GrayIndex) bandGray = band; else if (band->GetColorInterpretation()==GCI_RedBand) bandRed = band; else if (band->GetColorInterpretation()==GCI_GreenBand) bandGreen = band;