@@ -139,7 +139,7 @@ QgsGdalProvider::QgsGdalProvider( QString const & uri, bool update )
139
139
QString gdalUri = dataSourceUri ();
140
140
141
141
CPLErrorReset ();
142
- mGdalBaseDataset = GDALOpen ( TO8F ( gdalUri ), mUpdate ? GA_Update : GA_ReadOnly );
142
+ mGdalBaseDataset = gdalOpen ( TO8F ( gdalUri ), mUpdate ? GA_Update : GA_ReadOnly );
143
143
144
144
if ( !mGdalBaseDataset )
145
145
{
@@ -1424,12 +1424,12 @@ QString QgsGdalProvider::buildPyramids( const QList<QgsRasterPyramid> & theRaste
1424
1424
GDALClose ( mGdalDataset );
1425
1425
// mGdalBaseDataset = GDALOpen( QFile::encodeName( dataSourceUri() ).constData(), GA_Update );
1426
1426
1427
- mGdalBaseDataset = GDALOpen ( TO8F ( dataSourceUri () ), GA_Update );
1427
+ mGdalBaseDataset = gdalOpen ( TO8F ( dataSourceUri () ), GA_Update );
1428
1428
1429
1429
// if the dataset couldn't be opened in read / write mode, tell the user
1430
1430
if ( !mGdalBaseDataset )
1431
1431
{
1432
- mGdalBaseDataset = GDALOpen ( TO8F ( dataSourceUri () ), GA_ReadOnly );
1432
+ mGdalBaseDataset = gdalOpen ( TO8F ( dataSourceUri () ), GA_ReadOnly );
1433
1433
// Since we are not a virtual warped dataset, mGdalDataSet and mGdalBaseDataset are supposed to be the same
1434
1434
mGdalDataset = mGdalBaseDataset ;
1435
1435
return " ERROR_WRITE_FORMAT" ;
@@ -1521,7 +1521,7 @@ QString QgsGdalProvider::buildPyramids( const QList<QgsRasterPyramid> & theRaste
1521
1521
// something bad happenend
1522
1522
// QString myString = QString (CPLGetLastError());
1523
1523
GDALClose ( mGdalBaseDataset );
1524
- mGdalBaseDataset = GDALOpen ( TO8F ( dataSourceUri () ), mUpdate ? GA_Update : GA_ReadOnly );
1524
+ mGdalBaseDataset = gdalOpen ( TO8F ( dataSourceUri () ), mUpdate ? GA_Update : GA_ReadOnly );
1525
1525
// Since we are not a virtual warped dataset, mGdalDataSet and mGdalBaseDataset are supposed to be the same
1526
1526
mGdalDataset = mGdalBaseDataset ;
1527
1527
@@ -1576,7 +1576,7 @@ QString QgsGdalProvider::buildPyramids( const QList<QgsRasterPyramid> & theRaste
1576
1576
QgsDebugMsg ( " Reopening dataset ..." );
1577
1577
// close the gdal dataset and reopen it in read only mode
1578
1578
GDALClose ( mGdalBaseDataset );
1579
- mGdalBaseDataset = GDALOpen ( TO8F ( dataSourceUri () ), mUpdate ? GA_Update : GA_ReadOnly );
1579
+ mGdalBaseDataset = gdalOpen ( TO8F ( dataSourceUri () ), mUpdate ? GA_Update : GA_ReadOnly );
1580
1580
// Since we are not a virtual warped dataset, mGdalDataSet and mGdalBaseDataset are supposed to be the same
1581
1581
mGdalDataset = mGdalBaseDataset ;
1582
1582
}
@@ -2029,7 +2029,7 @@ QGISEXTERN bool isValidRasterFileName( QString const & theFileNameQString, QStri
2029
2029
2030
2030
// open the file using gdal making sure we have handled locale properly
2031
2031
// myDataset = GDALOpen( QFile::encodeName( theFileNameQString ).constData(), GA_ReadOnly );
2032
- myDataset = GDALOpen ( TO8F ( fileName ), GA_ReadOnly );
2032
+ myDataset = QgsGdalProviderBase::gdalOpen ( TO8F ( fileName ), GA_ReadOnly );
2033
2033
if ( !myDataset )
2034
2034
{
2035
2035
if ( CPLGetLastErrorNo () != CPLE_OpenFailed )
0 commit comments