set GA_ReadOnly flag again since test error

This commit is contained in:
edgarriba 2015-11-01 12:07:05 +01:00
parent a242556b1d
commit f50858dd24

View File

@ -461,7 +461,7 @@ bool GdalDecoder::readData( Mat& img ){
bool GdalDecoder::readHeader(){ bool GdalDecoder::readHeader(){
// load the dataset // load the dataset
m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_Update); m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_ReadOnly);
// if dataset is null, then there was a problem // if dataset is null, then there was a problem
if( m_dataset == NULL ){ if( m_dataset == NULL ){