Completed support for automatic detection of plugin features.
Cleaned up debug out of various plugins to ensure a clean osgconv --formats.
This commit is contained in:
@@ -58,6 +58,8 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter
|
||||
|
||||
virtual ReadResult readObject(const std::string& file, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
if (file.empty()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
if (osgDB::equalCaseInsensitive(osgDB::getFileExtension(file),"gdal"))
|
||||
{
|
||||
return readObject(osgDB::getNameLessExtension(file),options);
|
||||
@@ -81,6 +83,8 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter
|
||||
|
||||
virtual ReadResult readImage(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
if (fileName.empty()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
if (osgDB::equalCaseInsensitive(osgDB::getFileExtension(fileName),"gdal"))
|
||||
{
|
||||
return readImage(osgDB::getNameLessExtension(fileName),options);
|
||||
@@ -92,6 +96,8 @@ class ReaderWriterGDAL : public osgDB::ReaderWriter
|
||||
|
||||
virtual ReadResult readHeightField(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
if (fileName.empty()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
if (osgDB::equalCaseInsensitive(osgDB::getFileExtension(fileName),"gdal"))
|
||||
{
|
||||
return readHeightField(osgDB::getNameLessExtension(fileName),options);
|
||||
|
||||
Reference in New Issue
Block a user