[processing] Also standardise names for Spatialite algorithms

This commit is contained in:
Nyall Dawson 2018-08-21 15:13:48 +10:00
parent 5fab46f41c
commit 9fbef832c9
2 changed files with 10 additions and 1 deletions

View File

@ -84,7 +84,13 @@ class ImportIntoSpatialite(QgisAlgorithm):
return 'importintospatialite'
def displayName(self):
return self.tr('Import into Spatialite')
return self.tr('Export to SpatiaLite')
def shortDescription(self):
return self.tr('Exports a vector layer to a SpatiaLite database')
def tags(self):
return self.tr('import,table,layer,into,copy').split(',')
def processAlgorithm(self, parameters, context, feedback):
database = self.parameterAsVectorLayer(parameters, self.DATABASE, context)

View File

@ -60,6 +60,9 @@ class SpatialiteExecuteSQL(QgisAlgorithm):
def displayName(self):
return self.tr('SpatiaLite execute SQL')
def shortDescription(self):
return self.tr('Executes a SQL command on a SpatiaLite database')
def flags(self):
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading