Commit f50858dd authored by edgarriba's avatar edgarriba

set GA_ReadOnly flag again since test error

parent a242556b
......@@ -461,7 +461,7 @@ bool GdalDecoder::readData( Mat& img ){
bool GdalDecoder::readHeader(){
// 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( m_dataset == NULL ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment