- std::string ext = osgDB::getLowerCaseFileExtension(fileName);
- if(!acceptsExtension(ext))
- return ReadResult::FILE_NOT_HANDLED;
- std::string stgFileName;
- if (osgDB::equalCaseInsensitive(ext, "gz")) {
- stgFileName = osgDB::getNameLessExtension(fileName);
- if (!acceptsExtension(
- osgDB::getLowerCaseFileExtension(stgFileName))) {
- return ReadResult::FILE_NOT_HANDLED;
- }
- } else {
- stgFileName = fileName;
- }
- osg::Node* result
- = TileEntry::loadTileByName(osgDB::getNameLessExtension(stgFileName),
- options);