From Trajce Nikolov, added support for extract a region for geospatial imagery

This commit is contained in:
Robert Osfield
2007-10-04 08:54:41 +00:00
parent ce24d0c76f
commit a7c67fe287
3 changed files with 42 additions and 9 deletions

View File

@@ -53,6 +53,7 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter
// open a DataSetLayer.
osg::ref_ptr<GDALPlugin::DataSetLayer> dataset = new GDALPlugin::DataSetLayer(fileName);
dataset->setGdalReader(this);
if (dataset->isOpen()) return dataset.release();