6676 Commits

Author SHA1 Message Date
Nyall Dawson
844a3fb1b1 [processing] Allow help url to be set for models within help edit dialog
Refs #18767
2018-09-26 04:26:49 +10:00
Nyall Dawson
95d68e9172 [processing] Default to hiding help button for algorithms
And require that showing help is opt-in. Apart from a handful
of built-in providers, most providers will not have help pages
available within the QGIS documentation (including model and
script algorithms). Accordingly, we should hide the help button
by default and only show it for these selected providers.

Note that 3rd party algorithms can still specify custom helpUrl
urls, in which case the button WILL be shown.
2018-09-26 04:26:49 +10:00
Nyall Dawson
e2082a0935 [processing] Fix modeler help/description generation, allow setting
of model short description text

Fixes #18767
2018-09-26 04:26:49 +10:00
Nyall Dawson
aa55de8ef4 Fix advanced parameter panel incorrect margins in processing algorithm dialog 2018-09-26 04:26:27 +10:00
Nyall Dawson
6d1a9295f7 Use correct stylesheet for processing dialogs 2018-09-26 04:26:27 +10:00
Nyall Dawson
517b50c66d Capitalization 2018-09-25 22:01:39 +10:00
Alessandro Pasotti
930c3f8e45 Port makeFeaturesCompatible to C++
as: QgsVectorLayerUtils::makeFeaturesCompatible

With tests.
2018-09-25 08:17:14 +02:00
Nyall Dawson
c817e38be2 [processing] Fix an exception in modeler when editing a model in
which a child algorithm later has a new parameter added
2018-09-25 12:48:26 +10:00
Nyall Dawson
11991c5297 Fix capitalization 2018-09-25 12:41:12 +10:00
Nyall Dawson
ea2c16dd64 [processing][gdal] Dissolve field name should be optional 2018-09-25 11:14:33 +10:00
Nyall Dawson
a3af1f9f3a [processing][gdal] Add unit tests for Dissolve algorithm
Also:

Thanks to @agiudiceandrea:

Fixes #19900
Statistics were erroneously computed on the dissolve field, rather than on the statistic attribute field as it should be.

Fixes #19307
Handle filenames with white spaces (in the same way as Buffer, OffsetCurve, OneSideBuffer, PintsAlongLines algs).
2018-09-25 11:14:33 +10:00
Nyall Dawson
6e06c32a10 [processing] Fix crash when an algorithm dialog is left open and
processing options are changed

Make sure the algorithm dialogs use their own copy of algorithms,
instead of the copies owned by the processing registry. Opening
processing options triggers a full reload of providers, deleting
all existing algorithm instances from the registry first.
2018-09-25 10:32:20 +10:00
Nyall Dawson
c2dab4ff18 [processing] Use standard dock margins for results dock 2018-09-25 10:31:15 +10:00
Nyall Dawson
9fcd4fd00c Use QgsVectorLayerUtils.matchAttributesToFields in processing in-place edits 2018-09-25 08:49:21 +10:00
Nyall Dawson
93f83a0271 [processing] Remove unnecessary index creation in points in polygons
...and rely instead on the data provider's spatial index.

Refs #19919
2018-09-25 05:20:25 +10:00
Tom Kralidis
746654429c [MetaSearch] update default CSW connections 2018-09-24 10:41:38 +10:00
Nyall Dawson
961835cd8e [processing][GRASS] v.decimate zrange should be doubles, not int 2018-09-22 05:26:29 +10:00
Nyall Dawson
adfaf76168 Another Travis fix 2018-09-22 05:26:29 +10:00
Nyall Dawson
0c79d08d05 Fix tests on Travis 2018-09-22 05:26:29 +10:00
Nyall Dawson
4a0a48fe47 [processing] Also expose complete expression context inside
data defined buttons for model child algorithms

The context was not previously exposed, so users would not have
been aware that they can utilise all the variables and functions
available to parameters within child algorithms.
2018-09-22 05:26:29 +10:00
Nyall Dawson
7af13f62c0 Set widget context for widget wrappers 2018-09-22 05:26:29 +10:00
Juergen E. Fischer
e85c09254c translation string fix 2018-09-21 15:51:34 +02:00
Nyall Dawson
df657d4fd3 Fix some exceptions when running in-place edit on geometry-less layer 2018-09-21 18:15:46 +10:00
Nyall Dawson
e2068b8c1f [processing] Pass a copy of the feature to processFeature, not
the original layer's feature

Otherwise python processFeature implementations may return a
modified shallow copy of this feature, which means that the
test for modifications fails, since we're comparing against
the same feature which was modified.

Fixes some python algorithms do not modify features when used
in-place mode.
2018-09-21 18:02:21 +10:00
Alessandro Pasotti
1b2d885a03
Merge pull request #7966 from elpaso/bugfix-19843-dbmanager-quoted-sql
[dbmanager] Fix Update SQL Layer converts query to table name
2018-09-21 09:56:35 +02:00
Nyall Dawson
66f82530bd [processing] Correctly make extent selection combo box non-editable
The choice is supposed to be only from the listed options, and
shouldn't allow free-form user text
2018-09-21 13:16:13 +10:00
Nyall Dawson
f44be44ca9 [processing] Fix capitalization, ellipsis in extent parameter widget 2018-09-21 13:16:13 +10:00
Alessandro Pasotti
a8bf1b8f05 [dbmanager] Fix Update SQL Layer converts query to table name
Fixes #19843
2018-09-20 12:43:59 +02:00
Alessandro Pasotti
f208191824
Merge pull request #7946 from elpaso/bugfix-19617-processing-checkvalidity
Fix processing algorithm checkvalidity reason
2018-09-20 10:17:12 +02:00
nirvn
5ec3d5d990 [processing] improve in-place feature editing icon & toolbar position 2018-09-20 11:55:46 +07:00
Alessandro Pasotti
82a5c8f170 Move test from tests to processing folder 2018-09-19 18:29:26 +02:00
Alessandro Pasotti
826056e42c
Merge pull request #7951 from elpaso/bugfix-19802-dbmanager-saved-queries
Bugfix 19802 dbmanager saved queries
2018-09-19 11:44:18 +02:00
Alessandro Pasotti
a74b6262df [dbmanager] Fix stored queries retrieve
Fixes #19802 - DB Manager saved SQL statements are saved empty
2018-09-18 18:22:58 +02:00
Alessandro Pasotti
42573f7476
Merge pull request #7933 from nyalldawson/edit_in_place_feedback
[processing] Show a message bar success message after running in-place, parameterless alg
2018-09-18 17:14:58 +02:00
Alessandro Pasotti
001a81bc46 Fix processing algorithm checkvalidity reason
Fixex #19617 - Check validity algorithm returns empty reason in attribute table
2018-09-18 16:36:30 +02:00
Nyall Dawson
e005d6e2b9 [processing][gdal] Strip newlines from custom proj CRS definitions
before passing to GDAL commands

Fixes #19855
2018-09-18 14:57:22 +10:00
nirvn
fb80835911 [processing] fix history dialog alg. execution with CRS params 2018-09-18 14:56:52 +10:00
nirvn
f160847ebc [processing] allow geometryless layers as input in aggregate alg. 2018-09-18 11:08:28 +07:00
Nyall Dawson
209b6ee853 Cleaner messagebar item popping 2018-09-18 09:41:09 +10:00
Nyall Dawson
bfc5a1754f [processing] Show a message bar success message after running an
in-place alg if no parameter dialog is shown

Allows users to know that the algorithm has actually run in case
there's no visible changes
2018-09-18 09:40:28 +10:00
Nyall Dawson
f51487551b [processing] Use display name, not alg ID in undo history for in-place mode 2018-09-18 08:27:33 +10:00
nirvn
9f51a4c7d1 [processing] fix large points in polygon count overflow by using an int64 field 2018-09-17 18:54:06 +07:00
Juergen E. Fischer
239e93deeb run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482) 2018-09-17 02:34:36 +02:00
olivierdalang
953ea96bfb fixes #19825 2018-09-15 14:56:45 +10:00
olivierdalang
77d7d666d1 add tests for #19824 2018-09-15 14:53:40 +10:00
olivierdalang
340631f850 fix #19824 where modifications to project models were not saved
Models definitions are now stored in a dict rather than list
which allows for less verbose code to reference models by name
2018-09-15 14:53:40 +10:00
Luigi Pirelli
efa72779af
Merge pull request #7890 from luipir/fix_cascaded_grass_algs_in_modeler
Fix cascaded grass algs in modeler
2018-09-14 18:32:34 +02:00
Luigi Pirelli
8b07b4ed9e
Merge pull request #7626 from rudivs/kneighbour
[feature] Adapted k-neighbour concave hull plugin as QGIS 3 algorithm
2018-09-14 15:32:46 +02:00
Rudi von Staden
8fa27e106a Fix imports for ConcaveHull 2018-09-14 13:24:57 +02:00
Martin Dobias
9bcd21fb19
Merge pull request #7194 from wonder-sk/snap-geometries-alg
[FEATURE] Snap geometries algorithm
2018-09-14 12:36:41 +02:00