4983 Commits

Author SHA1 Message Date
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
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
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
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
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
Rudi von Staden
fd728c0854 Improve test coverage for k-nearest neighbor concave hull 2018-09-14 11:44:53 +02:00
Alessandro Pasotti
a60324b79b Accept geometry-less features in a geometry layer 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
699a9a3bfb Raise exception if prepare fails 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
0626a0ff5d Disable some more algs 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
e01449f5c5 Handle bad/null geometries and geometryless 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
08fbf38a88 Fix in-place support check for some more algs 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
7b162b535f Feature fixer: multi part to single part 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
c7ac4fe7fd Fix widget (broken by rebase) 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
08f79bed43 More tests for Z/M add back 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
4549ee5fff In-place moved check logic into QgsAlgorithm
+ new tests
+ fixed fixer function
+ drop z/m
2018-09-14 18:23:03 +10:00
Alessandro Pasotti
11aaf90393 Function to make output features compatible 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
db98a38c02 Remember button checked status 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
d1ec4ac0aa Sync in-place button state 2018-09-14 18:23:03 +10:00
Nyall Dawson
681d44f11f Messy mockup of feature 2018-09-14 18:23:03 +10:00