5812 Commits

Author SHA1 Message Date
Nyall Dawson
e386573c0c [FEATURE][processing] Port multi-layer input parameter widget to new API
Allows
- expression based inputs
- rearrangement of inputs for multi-layer parameters in models, to set
specific layer orders
2020-03-31 01:06:48 +10:00
Nyall Dawson
a682405ccb [processing] Partial port of Multi Input parameter widget (standard and batch) 2020-03-31 01:06:48 +10:00
Marco Hugentobler
4cd464059c Revert test gpkg files 2020-03-30 08:26:16 +02:00
mhugent
7523ec2067
Merge pull request #35408 from mhugent/server_project_settings_expanded
Server project settings, add 'expanded' attribute
2020-03-30 07:35:07 +02:00
Nyall Dawson
865aa931e2 Fix exception in deprecated classes 2020-03-29 05:56:23 +10:00
Nyall Dawson
d327ddd668 Trick autopep 2020-03-29 05:56:23 +10:00
Nyall Dawson
ef4344b674 Default to current layer when appropriate 2020-03-29 05:56:23 +10:00
Nyall Dawson
d40990e155 [feature][processing] Port Feature Source, Raster, Vector and Mesh Layer parameters to new API 2020-03-29 05:56:23 +10:00
Ivan Ivanov
0a1d22574a Fix unwanted automatic fill of all algorithms when there is no input in the locator 2020-03-28 19:42:42 +10:00
Nyall Dawson
2856e7d2a9 Somedays Travis is just calling out to be punched in the face... 2020-03-28 12:04:43 +10:00
Nyall Dawson
c92b6fba86 Indentation 2020-03-28 12:04:43 +10:00
Nyall Dawson
3d30471731 [processing] When running in a batch mode, move the layer adding
actions to the "Autofill" menu

This adds more UI consistency, as currently there's a disconnect
from the autofill options available via the Autofill buttons
vs some options which need to be done from the first rows "..."
button
2020-03-28 12:04:43 +10:00
Marco Hugentobler
934e30f30e Adapt expected test output 2020-03-27 14:38:32 +01:00
Alexander Bruy
72404a9038 [processing] use native matrix parameter definition widget 2020-03-27 07:08:42 +10:00
Alexander Bruy
87eefa325e [processing] use native enum parameter definition widget 2020-03-27 07:08:42 +10:00
Nyall Dawson
44ae5a5e1d Fix exception in test 2020-03-26 11:55:45 +10:00
Nyall Dawson
6ac9fca497 [FEATURE][processing] Allow loading non-disk based layers direct from browser for
feature sources, instead of requiring them to be loaded into a project first

This change allows users to directly browse to non disk-based layer sources
for any processing feature source inputs. It allows these inputs to be
taken direct from postgres, sql server, oracle, wfs, afs, etc layers directly
without having to first load them into a project!
2020-03-26 11:55:45 +10:00
Nyall Dawson
9d0efd3354 Set widget context for QgsProcessingMapLayerComboBox 2020-03-26 11:55:45 +10:00
Nyall Dawson
1915a16bf3 Port extent parameter to new c++ API widget wrapper 2020-03-25 19:25:40 +10:00
Nyall Dawson
945eb460fe Allow dragging and dropping project layers to QgsExtentWidget to copy extent from layer 2020-03-25 19:25:40 +10:00
Nyall Dawson
ab4016209a More Travis fixes 2020-03-25 09:42:17 +10:00
Nyall Dawson
ffda225796 Travis fixes 2020-03-25 09:42:17 +10:00
Nyall Dawson
9500020b0f Fix exception when opening gdal algorithms 2020-03-25 09:42:17 +10:00
Nyall Dawson
2ce58cdb9d Remove some unused ui files 2020-03-25 09:42:17 +10:00
Nyall Dawson
3d6e4963f6 [processing] Move base class of ParametersPanel to c++ 2020-03-25 09:42:17 +10:00
Nyall Dawson
41fb4df77f [processing] Move iterate button to c++ 2020-03-25 09:42:17 +10:00
Nyall Dawson
21d12b4ed5 Remove unused processing icons 2020-03-25 09:42:17 +10:00
Nyall Dawson
3b26a0dece Cleanup unused imports 2020-03-25 09:42:17 +10:00
Nyall Dawson
91d51914a0 Minor cleanup ParametersPanel 2020-03-25 09:42:17 +10:00
Nyall Dawson
6e2c21eb55 [processing] Cleanup handling of "iterate over source" buttons, move
creation completely to widget wrapper
2020-03-25 09:42:17 +10:00
Cédric Traizet
fb419b638d OTB plugin modification for OTB 7.1 2020-03-25 08:22:46 +10:00
Nyall Dawson
d4f378a3d2 [processing] Fix incorrect tooltips show for output parameters 2020-03-23 10:16:26 +10:00
lbartoletti
364dc3fd4f
Fix multi split for multilinestring (#34510)
* Fix multi split for multilinestring
2020-03-20 13:23:11 +01:00
Alexander Bruy
16b4ef8e32 [processing] port expression parameter definition widget to C++ 2020-03-19 11:49:13 +02:00
Alexander Bruy
972223b55e [processing] port point parameter definition widget to C++ 2020-03-19 11:49:13 +02:00
Alexander Bruy
f4e4adbef8 [processing] port CRS parameter defintion widget to C++ 2020-03-19 11:49:13 +02:00
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