mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
set GA_Update flag in order remove ERROR 8: band 1: Attempt to write to read only dataset inGDALRasterBand::Fill()
This commit is contained in:
parent
9ff14bc411
commit
decdae515b
@ -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 ){
|
||||
|
Loading…
Reference in New Issue
Block a user