233 Commits

Author SHA1 Message Date
volaya
bc06600871 [processing] more work on parameter wrappers 2016-10-05 12:35:03 +02:00
volaya
e353d226a8 [processing] evaluate parameters before executing algorithm
This allows a better use of expressions
2016-10-05 12:35:02 +02:00
volaya
01f380863f [processing] improvements for scripts and R scripts 2016-10-05 12:35:01 +02:00
volaya
efd73a491f [processing] fixes for new parameters architecture
includes better managing of crd and extent parameters in models, not requiring now the use of modeler-only lags
2016-10-05 12:35:00 +02:00
volaya
b298c76ee4 [processing] implemented parameter widget wrappers
Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
	python/plugins/processing/gui/ExtentSelectionPanel.py
	python/plugins/processing/modeler/ModelerParametersDialog.py
2016-10-05 12:34:58 +02:00
volaya
8cc9a50a52 [processing] moved script syntax from script algorithm class to parameters classes 2016-10-05 12:34:57 +02:00
arnaud.morvan@camptocamp.com
6158e9b340 Add CrsWidgetWrapper 2016-10-05 12:34:55 +02:00
arnaud.morvan@camptocamp.com
728be70c0b Create the boolean widget wrapper 2016-10-05 12:34:50 +02:00
arnaud.morvan@camptocamp.com
ecb7b3a096 Remove metadata from parameter.todict (do not save in model) 2016-10-05 12:34:49 +02:00
arnaud.morvan@camptocamp.com
2ad27b172e Add metadata property to parameters 2016-10-05 12:34:48 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Alexander Bruy
6f6979ab0b [processing] remove obsolete methods 2016-09-15 19:50:51 +03:00
arnaud.morvan@camptocamp.com
d85de7ccd8 Fix ParameterGeometryPredicate.getValueAsCommandLineParameter 2016-09-08 19:44:45 +02:00
arnaud.morvan@camptocamp.com
c369710667 Calculate min coverage on execution 2016-09-04 17:58:17 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
7e26124c2b [processing] support for output geometry types (work in progress) 2016-09-02 09:28:32 +03:00
Alexander Bruy
6a7fa7dd5a [processing] add missed error() method 2016-08-23 11:25:14 +03:00
Alexander Bruy
acdde31b3d [processing] more cleanups (follow up 06c4b07222) 2016-08-05 15:05:36 +03:00
Alexander Bruy
4c39bd12e8 [processing] introduce OutputCrs output and add algorithms to get layer CRS in modeler 2016-08-05 12:55:26 +03:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
fbc5e0fc8e Fix indentation 2016-06-07 11:11:59 +10:00
Marco Bernasocchi
f9ab7223fc [processing] ParameterTableMultipleField type added
This adds a widget with multiple column attributes selector
2016-06-03 09:27:51 +02:00
Marco Bernasocchi
2dea7c8c93 [processing] allow optional in all getAsScriptCode 2016-06-03 09:27:51 +02:00
volaya
99c16f0ba5 [processing] added activateProvider method in Processing class 2016-06-02 09:45:59 +02:00
volaya
61e26fd8f3 [processing] fixes for issues with 3rd party providers being loaded and unloaded 2016-06-01 15:21:03 +02:00
volaya
0272ebc2e8 [processing] fixed check to avoid adding a provider that is already added 2016-06-01 13:20:57 +02:00
Salvatore Larosa
83502c55b3 [processing] add again the algorithm name after being removed mistakenly in 507aeb0 2016-05-31 15:56:42 +02:00
Juergen E. Fischer
797826ea5b spelling fixes 2016-05-31 03:36:27 +02:00
rldhont
d8ccec0e0a [Processing] add an algs static method to Processing for server 2016-05-28 12:41:30 +02:00
Alexander Bruy
cc7eb27a27 [processing] drop WebView dependency (follow up 38f6ace4c0) 2016-05-27 20:38:51 +03:00
volaya
c080c2035b [processing] fixed default extension selection 2016-05-27 11:27:23 +02:00
Alexander Bruy
d16f04bf3a [processing] support multiple scripts/models folders (fix #10476) 2016-05-26 13:56:21 +03:00
volaya
997a3683a0 [processing] removed wrong import 2016-05-25 17:53:07 +02:00
volaya
3607e269c6 [processing] improvements for new mechanism for adding algorithms
Correctly remove algorithms on plugin unload
2016-05-24 10:27:38 +02:00
volaya
bc75862e53 [processing] fixed header 2016-05-23 19:36:16 +02:00
volaya
2eebe0d314 [processing] additional mechanism to add scripts from 3rd party plugin 2016-05-23 19:36:16 +02:00
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
9a5c5835ef [processing] moved imports to initialize providers to a separate module 2016-05-23 19:34:25 +02:00
volaya
b90ec83c23 [processing] keep parameter in addProvider method for backwards compatibility 2016-05-23 19:34:25 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
volaya
e925382292 [processing] fixed provider updates in toolbox 2016-05-23 19:34:24 +02:00
Alexander Bruy
2f5c3a570a [processing] fix expressions handling in ParameterString (fix #14834)
Add initial set of tests for ParameterString
2016-05-23 14:28:10 +03:00
volaya
a19741b297 [processing] log errors in hook scripts 2016-05-19 13:45:18 +02:00
arnaud.morvan@camptocamp.com
fc5f70c6f5 Processing - Support tables with no geometry in OutputVector 2016-05-17 14:16:15 +02:00
Matthias Kuhn
25f2e637c0 Remove references to QPyNullVariant 2016-05-13 22:23:03 +02:00
Matthias Kuhn
abfd7740bd Fix qgis.PyQt compatibility imports 2016-04-29 14:10:41 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Alexander Bruy
d20a2ced9d [processing] remove duplicated code 2016-04-29 12:01:13 +03:00
Alexander Bruy
b52735dbd8 fix indentation 2016-04-27 15:40:56 +03:00
volaya
bee4068b89 [processing] handle provider modifications when settings have been edited 2016-04-27 13:36:28 +02:00