Commit decdae51 authored by edgarriba's avatar edgarriba

set GA_Update flag in order remove ERROR 8: band 1: Attempt to write to read…

set GA_Update flag in order remove ERROR 8: band 1: Attempt to write to read only dataset inGDALRasterBand::Fill()
parent 9ff14bc4
......@@ -461,7 +461,7 @@ bool GdalDecoder::readData( Mat& img ){
bool GdalDecoder::readHeader(){
// load the dataset
m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_ReadOnly);
m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_Update);
// 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