7939 Commits

Author SHA1 Message Date
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
Sandro Santilli
b2af13bdcc [DBManager] Use ST_EstimatedExtent with newer PostGIS
Avoids errors with PostGIS 3.0+ ("st_estimated_extent" does not exist
anymore with that version).
2020-03-17 20:36:13 +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
Alexander Bruy
bedc2d9378 [dbmanager] clear create table dialog on succes (fix #25535) 2020-03-13 08:56:51 +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
Even Rouault
ab1755c6a2
Merge pull request #34795 from jgrocha/fix-db-manager-extent-to-string
Fix TypeError when displaying Postgis layers extent
2020-03-11 19:45:02 +01:00
Raul Bezerra Barbosa
7fe174266d fixes #34774 - python 2to3 related bug 2020-03-11 18:09:38 +01: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
Matthias Kuhn
7edf1f286b
Merge pull request #34954 from gacarrillor/duplicate_nodes_in_holes
Remove duplicate nodes from all inner rings
2020-03-10 08:08:26 +01:00
gacarrillor
8d2f75da0f Test for Remove Duplicate Vertices alg. (Polygons with duplicates in several holes) 2020-03-09 22:22:37 -05:00
Harrissou Sant-anna
61d1ac1226 more robust code 2020-03-10 07:52:17 +10:00
Harrissou Sant-anna
ca89d34059 Allow to cancel server connections list modification 2020-03-10 07:52:17 +10:00
Harrissou Sant-anna
eca5261160 Allow to open data loader dialog from metasearch
fixes #34759
2020-03-10 07:52:17 +10:00
gacarrillor
0153dc805e [processing] Disable runAsBatch/runAsSingle buttons during algorithm execution 2020-03-07 17:16:03 -05:00