mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] Allow selection of non-spatial tables for create attribute index alg
This commit is contained in:
parent
e7e9ba0efc
commit
bce716c8b1
@ -28,7 +28,7 @@ __revision__ = '$Format:%H$'
|
||||
from qgis.core import QgsVectorDataProvider, QgsFields
|
||||
|
||||
from processing.core.GeoAlgorithm import GeoAlgorithm
|
||||
from processing.core.parameters import ParameterVector
|
||||
from processing.core.parameters import ParameterTable
|
||||
from processing.core.parameters import ParameterTableField
|
||||
from processing.core.outputs import OutputVector
|
||||
|
||||
@ -45,8 +45,8 @@ class CreateAttributeIndex(GeoAlgorithm):
|
||||
self.name, self.i18n_name = self.trAlgorithm('Create attribute index')
|
||||
self.group, self.i18n_group = self.trAlgorithm('Vector general tools')
|
||||
|
||||
self.addParameter(ParameterVector(self.INPUT,
|
||||
self.tr('Input Layer')))
|
||||
self.addParameter(ParameterTable(self.INPUT,
|
||||
self.tr('Input Layer')))
|
||||
self.addParameter(ParameterTableField(self.FIELD,
|
||||
self.tr('Attribute to index'), self.INPUT))
|
||||
self.addOutput(OutputVector(self.OUTPUT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user