Nyall Dawson
08e850db38
[processing] In batch mode, don't try to run rows with invalid parameter values
...
Previously we would show a warning about these, but then go ahead and try
to run the row anyway (using an empty set of parameters), resulting in
the log being filled with confusing error messages.
Instead, keep the existing warning advising about which values are
invalid, but skip the affected row and don't try to run it at all.
2020-03-19 15:42:13 +10:00
Matthias Kuhn
01c7cb1814
Merge pull request #34928 from gacarrillor/adjust_run_button_status_in_alg_dialog
...
[processing][needs-docs] Adjust status of controls executing an algorithm dialog
2020-03-18 14:42:52 +01:00
Matthias Kuhn
342f1e3396
Merge pull request #31387 from gacarrillor/colour_refactor_fields
...
Show 'template layer' constraints info in the Refactor fields algorithm's UI
2020-03-18 07:10:06 +01:00
Ivan Ivanov
9dc1ade0b5
Reorder the code; Add more context to the algorithm locator; Add more tests
2020-03-18 03:02:28 +10:00
Ivan Ivanov
7684062632
Fix processing locator filter
2020-03-18 03:02:28 +10:00
Ivan Ivanov
9e75e3b542
Add fuzzy search to all possible locator filters; Move to StringUtils::fuzzySearch; Add some tests (that helped!)
2020-03-18 03:02:28 +10:00
Nyall Dawson
dee6f3f30d
Add flag to allow a child algorithm's results to prune back the remaining model branches
...
When an algorithm returns this flag, and after executing it in a model it doesn't set a
certain output which remaining model algorithms depend on, then these branches are
pruned back and don't get executed for the model run.
Allows for creation of algorithms which impact the overall model flow.
2020-03-18 02:52:37 +10:00
Nyall Dawson
a7f33be401
[FEATURE][processing] Add new algorithm "Filter by geometry type"
...
This algorithm filters features by their geometry type. Incoming
features will be directed to different outputs based on whether
they have a point, line or polygon geometry.
Allows for model creation which responds to different input
layer geometry types by applying different logic depending on the
input geometry type.
2020-03-18 02:52:37 +10:00
Nyall Dawson
8b54d2f06c
[processing] Fix conversion of ESRI CRS when running GDAL algorithms under proj 6
...
Fixes #35123
2020-03-17 16:58:09 +10:00
Nyall Dawson
4edc7d11d9
Drop postgis GeoDB class from Processing
...
This class is unused and is a near 1:1 copy of the core connections API
+ db manager classes
2020-03-17 15:10:53 +10:00
Nyall Dawson
184bb0ebb2
Port last postgis alg to connections API
2020-03-17 15:10:53 +10:00
Nyall Dawson
cd2caf84f7
Raise an exception when connection is not specified
2020-03-17 15:10:53 +10:00
Nyall Dawson
3c3efe5f7a
Remove unused spatialite python connection class
2020-03-17 15:10:53 +10:00
Nyall Dawson
ba010f8803
[processing] Use core connections API for Spatialite algorithms instead
...
of Python reimplementation
2020-03-17 15:10:53 +10:00
Nyall Dawson
97e47fa7b8
[processing] Use core connections API instead of Python GeoDB class
...
for postgres connection handling
2020-03-17 15:10:53 +10:00
Nyall Dawson
af56ffb915
Delete DestinationSelectionPanel
2020-03-17 07:24:40 +10:00
Nyall Dawson
dc5da8574f
Fix test
2020-03-17 07:24:40 +10:00
Nyall Dawson
517aa9667b
[processing] Port DestinationSelectionPanel to c++
...
This is basically a 1:1 port (+some fixes relating to incorrect signal
emissions and many more tests)
2020-03-17 07:24:40 +10:00
Nyall Dawson
fe4b2c89f9
Drop PostgisTableSelector
2020-03-16 19:42:02 +10:00
Nyall Dawson
66d084f72d
[processing] Use QgsNewDatabaseTableNameWidget instead of custom
...
dialog when saving processing output direct to postgis
2020-03-16 19:42:02 +10:00
Nyall Dawson
edd0635fe3
[processing] Move responsiblity for creation of file filter strings from python to c++
2020-03-16 10:08:46 +10:00
Alexander Bruy
47070a7d7b
Merge pull request #35076 from alexbruy/maplayer-datatype
...
Data type support for QgsProcessingParameterMapLayer
2020-03-15 16:14:20 +02:00
gacarrillor
f6ee3e81ce
Add 5 tests to remove NULL geometries alg with the remove EMPTY geometries option
2020-03-15 17:37:51 +10:00
gacarrillor
766b1e43b4
Optionally, remove empty geoms in RemoveNullGeometries algorithm
2020-03-15 17:37:51 +10:00
Nyall Dawson
edfc51139b
Remove unused redundant algorithm
2020-03-14 16:57:14 +10:00
Nyall Dawson
d277f9ffb8
Remove unused old postgis widget wrappers
2020-03-14 16:57:14 +10:00
Nyall Dawson
83d2a816fb
[processing] Use proper database schema/table name widgets in algorithms
2020-03-14 16:57:14 +10:00
Alexander Bruy
70c5018b74
map layer data type support in modeler
2020-03-14 08:51:02 +02:00
Alexander Bruy
56971a9880
handle map layer data type when parsing description files
2020-03-14 08:51:02 +02:00
Nyall Dawson
5149f0b6c7
Rebase fixes
2020-03-12 13:14:33 +10:00
Nyall Dawson
e3f1c576a9
Snapping api work
2020-03-12 13:14:33 +10:00
Nyall Dawson
4dd598fbb5
Also warn for unsaved changes when opening a model through the model designer
2020-03-11 08:39:54 +10:00
Nyall Dawson
e9c594d388
Make Model Designer window title follow app conventions
...
Show unsaved changes via * prefix, show model name in title
Also less Python, more c++
2020-03-11 08:39:54 +10:00
Nyall Dawson
e7b5c26696
[FEATURE][processing] Add undo/redo support to model designer
...
Makes QGIS more forgiving for users!
Sponsored by NRCan
2020-03-11 08:39:54 +10:00
Nyall Dawson
1ea60faebd
Fix test
2020-03-10 19:10:52 +10:00
Nyall Dawson
f587430d23
Remove ad-hoc python provider connection parameters and replace
...
with proper provider connection parameters
2020-03-10 19:10:52 +10:00
gacarrillor
8d2f75da0f
Test for Remove Duplicate Vertices alg. (Polygons with duplicates in several holes)
2020-03-09 22:22:37 -05:00
gacarrillor
0153dc805e
[processing] Disable runAsBatch/runAsSingle buttons during algorithm execution
2020-03-07 17:16:03 -05:00
gacarrillor
237f1f7e2d
[processing][needs-docs] Adjust status of controls in algorithm dialog
...
+ Run button is not shown anymore in the Log tab, therefore, you can only run algorithms from the Parameters tab.
+ While running an algorithm, the Parameters tab is now blocked.
+ When an algorithm execution finishes (either successfully or not), a new button Change Parameters is shown in the Log tab.
+ The Batch Algorithm Dialog is now consistent with the described behavior (before, it blocked the Parameters panel, but not the tab; and it was the only dialog blocking parameters widgets).
These changes were applied to the Algorithm Dialog and Batch Algorithm Dialog, and work on Edit in place dialogs as well.
2020-03-07 14:23:51 -05:00
Nyall Dawson
bc3077e52e
[processing] When running an algorithm in place mode, don't auto close
...
the dialog after changing features
Otherwise it can be a real pain to iteratively change/undo/tweak parameter
value
2020-03-06 18:24:01 +10:00
Nyall Dawson
4e1e68461d
Snap Geometries algorithm is capable of running in-place mode
2020-03-06 18:24:01 +10:00
Nyall Dawson
56610002e3
Identation
2020-03-06 18:22:49 +10:00
Nyall Dawson
0b3f7a58c1
Hookup toggle to hide comments from model designer
2020-03-06 18:22:49 +10:00
Nyall Dawson
08b47a496b
Fix missing icon, less Python
2020-03-06 18:22:49 +10:00
Nyall Dawson
b84bf68dab
Bit less Python
2020-03-06 18:22:49 +10:00
Nyall Dawson
8845b535c5
More c++ ports
2020-03-06 18:22:49 +10:00
Nyall Dawson
df7dd5ba90
More model dialog Python -> c++ ports
2020-03-06 18:22:49 +10:00
Nyall Dawson
a0e6a374eb
Port some more model designer Python code to c++
2020-03-06 18:22:49 +10:00
Nyall Dawson
eefd04cbc1
Start creation of a c++ base class for modeler dialog
2020-03-06 18:22:49 +10:00
Nyall Dawson
93355082a2
Add a menu bar to model designer
2020-03-06 18:22:49 +10:00