From e610b84f1c701f04a3a6bd83d14937a4ed420fe5 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 15 Jul 2024 09:44:39 +1000 Subject: [PATCH] [grass] Drop custom defaultVectorFileExtension implementation This fixes the GRASS provider ignoring the "default output vector layer extension" setting for processing. The override in the grass provider is NOT required as the base class method already applies the logic for falling back to shp when gpkg is not available (which was added here in 2e92dabd), and also correctly respects the default format setting. Fixes #43988 --- python/plugins/grassprovider/grass_provider.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/python/plugins/grassprovider/grass_provider.py b/python/plugins/grassprovider/grass_provider.py index 4f72a8f8ad9d..61ce5a9b8ab8 100644 --- a/python/plugins/grassprovider/grass_provider.py +++ b/python/plugins/grassprovider/grass_provider.py @@ -153,15 +153,6 @@ def svgIconPath(self): def versionInfo(self): return GrassUtils.installedVersion() or None - def defaultVectorFileExtension(self, hasGeometry=True): - # By default,'gpkg', but if OGR has not been compiled with sqlite3, then - # we take "SHP" - if 'GPKG' in [o.driverName for o in - QgsVectorFileWriter.ogrDriverList()]: - return 'gpkg' - else: - return 'shp' if hasGeometry else 'dbf' - def supportsNonFileBasedOutput(self): """ GRASS Provider doesn't support non file based outputs