mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Data items: Close GDAL dataset when it is not needed
This was leading to situations where QGIS was hitting limit of the maximum open files
This commit is contained in:
parent
b80a1bcac5
commit
7532000706
@ -43,7 +43,10 @@ QgsGdalLayerItem::QgsGdalLayerItem( QgsDataItem* parent,
|
||||
GDALDatasetH hDS = GDALOpen( TO8F( mPath ), GA_Update );
|
||||
|
||||
if ( hDS )
|
||||
{
|
||||
mCapabilities |= SetCrs;
|
||||
GDALClose( hDS );
|
||||
}
|
||||
}
|
||||
|
||||
QgsGdalLayerItem::~QgsGdalLayerItem()
|
||||
|
Loading…
x
Reference in New Issue
Block a user