-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sextante] several fixes for supporting optional parameters in modeler
- Loading branch information
Showing
12 changed files
with
140 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
NAME:A model with an empty string | ||
GROUP:[Test models] | ||
PARAMETER:ParameterVector|VECTORLAYER_V|v|-1|False | ||
120.0,60.0 | ||
VALUE:HARDCODEDPARAMVALUE_FORMULA_0===value = 10 | ||
VALUE:HARDCODEDPARAMVALUE_FIELD_PRECISION_0===0 | ||
VALUE:HARDCODEDPARAMVALUE_FIELD_TYPE_0===0 | ||
VALUE:HARDCODEDPARAMVALUE_FIELD_LENGTH_0===10 | ||
VALUE:HARDCODEDPARAMVALUE_FIELD_NAME_0===NewField | ||
ALGORITHM:qgis:advancedpythonfieldcalculator | ||
120.0,160.0 | ||
None | ||
-1|VECTORLAYER_V | ||
-1|HARDCODEDPARAMVALUE_FIELD_NAME_0 | ||
-1|HARDCODEDPARAMVALUE_FIELD_TYPE_0 | ||
-1|HARDCODEDPARAMVALUE_FIELD_LENGTH_0 | ||
-1|HARDCODEDPARAMVALUE_FIELD_PRECISION_0 | ||
None | ||
-1|HARDCODEDPARAMVALUE_FORMULA_0 | ||
out |
12 changes: 12 additions & 0 deletions
12
python/plugins/sextante/modeler/models/optionalfield.model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NAME:A model with an optional field | ||
GROUP:[Test models] | ||
PARAMETER:ParameterVector|VECTORLAYER_V|v|-1|False | ||
120.0,60.0 | ||
VALUE:HARDCODEDPARAMVALUE_METHOD_0===0 | ||
ALGORITHM:qgis:convexhull | ||
135.0,186.0 | ||
None | ||
-1|VECTORLAYER_V | ||
None | ||
-1|HARDCODEDPARAMVALUE_METHOD_0 | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters