7775 Commits

Author SHA1 Message Date
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
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
Nyall Dawson
2a1bf56493 [FEATURE][processing] Remember parameter values between model designer runs
When designing a model, users typically will need to run the model
many times as they tweak its structure.

This change causes the parameters used when running the model from
the designer to be remembered and saved into the model, so that
each time you run the model from the designer you don't have to
re-set all the input parameter values to the desired test ones.

Makes iterative model design SO much easier!

Sponsored by Alta Ehf
2020-03-06 18:22:49 +10:00
Alessandro Pasotti
b3864dbf3a
Merge pull request #34890 from elpaso/bugfix-gh34862-db-manager-stinks-again
DB manager: connections refresh
2020-03-06 08:37:15 +01:00