minorua / Qgis2threejs

3D map visualization and web export plugin for QGIS
http://minorua.github.io/Qgis2threejs/docs/
495 stars 91 forks source link

GDAL 4.0 FutureWarning #323

Open minorua opened 6 months ago

minorua commented 6 months ago

The following warning issued on Ubuntu:

WARNING    warning:/usr/lib/python3/dist-packages/osgeo/gdal.py:287: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.

traceback: File "/Documents/minorua/QGIS/plugins/Qgis2threejs/q3dcontroller.py", line 314, in _processRequests
self.buildScene()
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/q3dcontroller.py", line 204, in buildScene
self.buildLayers()
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/q3dcontroller.py", line 218, in buildLayers
if not self._buildLayer(layer) or self.aborted:
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/q3dcontroller.py", line 265, in _buildLayer
for builder in self.builder.layerBuilders(layer):
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/build.py", line 107, in layerBuilders
builder = DEMLayerBuilder(self.settings, layer, self.imageManager)
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/builddem.py", line 25, in __init__
self.provider = settings.demProviderByLayerId(layer.layerId)
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/exportsettings.py", line 410, in demProviderByLayerId
return GDALDEMProvider(layer.source(), str(self.crs.toWkt()), source_wkt=str(layer.crs().toWkt())) # use CRS set to the layer in QGIS
File "/Documents/minorua/QGIS/plugins/Qgis2threejs/q3dcore.py", line 143, in __init__
self.ds = gdal.Open(filename_utf8, gdal.GA_ReadOnly)
File "/usr/lib/python3/dist-packages/osgeo/gdal.py", line 5293, in Open
_WarnIfUserHasNotSpecifiedIfUsingExceptions()
File "/usr/lib/python3/dist-packages/osgeo/gdal.py", line 287, in _WarnIfUserHasNotSpecifiedIfUsingExceptions