diff --git a/python/plugins/grassprovider/Grass7AlgorithmProvider.py b/python/plugins/grassprovider/Grass7AlgorithmProvider.py index a2da3fd8a37e..651500b2b48e 100644 --- a/python/plugins/grassprovider/Grass7AlgorithmProvider.py +++ b/python/plugins/grassprovider/Grass7AlgorithmProvider.py @@ -133,15 +133,6 @@ def svgIconPath(self): def versionInfo(self): return Grass7Utils.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): """ GRASS7 Provider doesn't support non file based outputs @@ -149,11 +140,11 @@ def supportsNonFileBasedOutput(self): return False def supportedOutputVectorLayerExtensions(self): - # We use the same extensions than QGIS because: + # We use the same extensions as QGIS because: # - QGIS is using OGR like GRASS - # - There are very chances than OGR version used in GRASS is + # - There are very few chances that OGR version used in GRASS is # different from QGIS OGR version. - return QgsVectorFileWriter.supportedFormatExtensions() + return super().supportedOutputVectorLayerExtensions() def supportedOutputRasterLayerExtensions(self): return Grass7Utils.getSupportedOutputRasterExtensions() diff --git a/python/plugins/grassprovider/Grass7Utils.py b/python/plugins/grassprovider/Grass7Utils.py index dd4f0daabe90..9ed0601eb3db 100644 --- a/python/plugins/grassprovider/Grass7Utils.py +++ b/python/plugins/grassprovider/Grass7Utils.py @@ -601,7 +601,7 @@ def grassHelpPath(): @staticmethod def getSupportedOutputRasterExtensions(): - # We use the same extensions than GDAL because: + # We use the same extensions as GDAL because: # - GRASS is also using GDAL for raster imports. # - Chances that GRASS is compiled with another version of # GDAL than QGIS are very limited!