|
52 | 52 | from processing.outputs.OutputFactory import OutputFactory |
53 | 53 | from processing.script.WrongScriptException import WrongScriptException |
54 | 54 |
|
55 | | - |
56 | 55 | class ScriptAlgorithm(GeoAlgorithm): |
57 | 56 |
|
58 | 57 | def __init__(self, descriptionFile, script=None): |
@@ -141,6 +140,15 @@ def processParameterLine(self, line): |
141 | 140 | elif tokens[1].lower().strip() == 'vector': |
142 | 141 | param = ParameterVector(tokens[0], desc, |
143 | 142 | [ParameterVector.VECTOR_TYPE_ANY]) |
| 143 | + elif tokens[1].lower().strip() == 'vector point': |
| 144 | + param = ParameterVector(tokens[0], desc, |
| 145 | + [ParameterVector.VECTOR_TYPE_POINT]) |
| 146 | + elif tokens[1].lower().strip() == 'vector line': |
| 147 | + param = ParameterVector(tokens[0], desc, |
| 148 | + [ParameterVector.VECTOR_TYPE_LINE]) |
| 149 | + elif tokens[1].lower().strip() == 'vector polygon': |
| 150 | + param = ParameterVector(tokens[0], desc, |
| 151 | + [ParameterVector.VECTOR_TYPE_POLYGON]) |
144 | 152 | elif tokens[1].lower().strip() == 'table': |
145 | 153 | param = ParameterTable(tokens[0], desc, False) |
146 | 154 | elif tokens[1].lower().strip() == 'multiple raster': |
|
0 commit comments