Skip to content
Snippets Groups Projects
Commit 49a2fa57 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1479: disable overview generation for VSI datasets

parent fab39b9d
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,32 @@ GDALOverviewsBuilder
io->SetFileName( filename );
return !io->GetSubDatasetInfo( names, descs );
// no overview for containers
if(io->GetSubDatasetInfo( names, descs ))
return false;
// no overview for VSI datasets
if (filename.size()>8 && filename.compare(0, 4, "/vsi") == 0)
{
size_t pos = filename.find('/',4);
if (pos != std::string::npos)
{
bool isVSI = true;
for (unsigned int i=4; i<pos ; i++)
{
int c = filename[i];
if ( !(std::islower(c) || std::isdigit(c) || c == '_' ) )
{
isVSI = false;
break;
}
}
if (isVSI)
return false;
}
}
return true;
}
/***************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment