5023 Commits

Author SHA1 Message Date
Peter Petrik
9ce7e54fb1
allow selection of file paths for mesh layers [processings] (#8702)
allow selection of file paths for mesh layers
2018-12-20 15:04:02 +01:00
Nyall Dawson
9e1bf68902 [processing] Fix pixel centroids along lines handling of null geometries 2018-12-18 04:38:42 +10:00
Peter Petrik
e71660215c [processing] add QgsProcessingParameterMeshLayer parameter 2018-12-17 11:50:53 +01:00
Nyall Dawson
c7cb5a8e3b [processing][SAGA] Fix output type of Zonal Grid Stats alg
and add unit test

Fixes #20815
2018-12-17 10:50:47 +10:00
Nyall Dawson
abc7b037d8 [needs-docs][processing] Output count of retained and duplicate features from
Delete duplicate geometries algorithm.

This matches the output of the delete duplicates by attribute
algorithm
2018-12-15 10:44:33 +10:00
Nyall Dawson
82c13bdde0 [processing] Fix error when running delete duplicate geometries and
some input features have null geometries

Fixes #20788
2018-12-15 10:44:33 +10:00
Nyall Dawson
5c2f68e769 [processing] Throw error when attempting to use Distance Matrix with
multipoint datasets

There's no single approach to use for multi-point inputs, so instead
of overloading this algorithm with extra options to control how these
are handled, we raise a helpful error and push the reponsibility back
to the user to get the data into the right format before running the
tool.

Fixes #20799
2018-12-15 10:36:44 +10:00
Nathan Woodrow
87d2da13fb
[FEATURE][needs-docs] Add new @alg decorator for nicer python processing scripts. (#8586)
@alg()
@alg.help()
@alg.input()
@alg.output()
2018-12-10 16:35:52 +10:00
Jon McCormack
9493f55117 fix processing plugin error when grass7 disabled 2018-12-10 10:02:09 +10:00
Nyall Dawson
b95400806a [FEATURE][processing] Native "split lines by maximum length" algorithm
This algorithm takes an input (multi)line (or curve) layer, and splits
each feature into multiple parts such that no part is longer then
the specified maximum length.

Supports data-defined maximum length property, and edit in place operation.

Credit to @NathanW2 for the inspiration!
2018-12-06 10:01:31 +10:00
Nyall Dawson
d79cee1fe1 [needs-docs][processing] Rename "remove duplicates by attribute" to
"delete duplicates by attribute"

for consistency with "delete duplicate geometries". Also add some
tags to delete duplicate geometries algorithm.
2018-12-05 07:36:13 +10:00
Nyall Dawson
9c1653f00a [processing] Fix exception on launching refactor fields
(The logic with parameter widget_wrapper metadata is very gross -
but there's nothing we can do about it till 4.0!)

Fixes #20707
2018-12-05 04:47:55 +10:00
Nyall Dawson
0ba37fcb72 [processing][SAGA] Add unit test for RGB composite 2018-12-05 04:47:33 +10:00
Nyall Dawson
71b32f072c [processing][SAGA] Fix output type for RGB Composite should be tif, not sdat format 2018-12-05 04:47:33 +10:00
Luigi Pirelli
c39e2b83da
Merge pull request #8445 from NaturalGIS/add_te_paramater_in_gdal_clip_by_mask
add the -te and -te_srs and -multi parameters to the gdalwarp tool used to clip rasters by mask layers
2018-12-04 11:32:52 +01:00
Giovanni Manghi
25bfca492f partial fix for SAGA RGB composite tool 2018-12-04 11:49:20 +10:00
Nyall Dawson
455e04ea66 [processing][SAGA] Fix definition of Patching algorithm
And add unit test

Fixes #20698
2018-12-04 10:36:38 +10:00
Nyall Dawson
4212deabe8 [processing][saga] Add unit test for point distances alg 2018-12-03 18:11:24 +10:00
Nyall Dawson
ef2fff0820 [processing][SAGA] Fix default output format for geometry-less tables 2018-12-03 18:11:24 +10:00
Luigi Pirelli
e1b3524b5d
Merge pull request #8443 from NaturalGIS/fix_saga_point_distances
fix the SAGA Points Distances tool
2018-12-02 23:36:38 +01:00
Alessandro Pasotti
0af1ce40a8
Merge pull request #8571 from elpaso/bugfix-20601-rastercalc-duplicated-layer-names
Fix rastercalc duplicated layer names
2018-11-30 10:17:38 +01:00
volaya
e546129f5c [processing] fixed update of MultipleInputPanel after alg is run
Fixes #20670
2018-11-30 09:17:07 +01:00
Nyall Dawson
3a66b92522 [processing] Fix crash when running model through modeler dialog
Fixes #20676
2018-11-30 10:02:52 +10:00
Nyall Dawson
59d2c5301f [processing] Fix exception when parameter metadata is set to extend inbuilt wrapper type 2018-11-30 05:02:59 +10:00
Alessandro Pasotti
1672d434ce Raster calc: refresh layers list if a layer is renamed or added/removed
Fixes #20601 - bug: Raster calculator produces empty results layer and no error message if input layer is one that has been renamed in QGIS layers panel
2018-11-29 18:30:01 +01:00
Alessandro Pasotti
18854dc7b6 Do not add duplicates in raster calc layers list
Related to #20601
2018-11-29 12:26:57 +01:00
Alessandro Pasotti
0fde410a58
Merge pull request #8564 from elpaso/rastercalculator-fast-track
Rastercalculator memory efficient track
2018-11-29 09:32:24 +01:00
Nyall Dawson
f10b62c380 [processing] Fix crash on closing batch processing dialog
Refs #20650
2018-11-29 10:57:07 +10:00
Nyall Dawson
d207251251 [processing] Fix run as batch mode doesn't execute
Fixes #20650
2018-11-29 10:57:07 +10:00
Alessandro Pasotti
81723586f5 Update reference hashes for calculator processing test 2018-11-28 22:43:28 +01:00
nirvn
cdda581819 [processing] Add test & adjust handling of negative distance value
for multi ring (constant) algorithm
2018-11-28 22:47:39 +07:00
Alessandro Pasotti
55017d7800 Fix rounding error while calculating output raster dimensions
This was creating artifacts in some situations (missing line
in the middle).
2018-11-28 14:46:21 +01:00
nirvn
73d19e3c19 [processing] Add edit feature in-place menu shortcut
(useful for people who rely on the locator)
2018-11-28 16:53:31 +07:00
juanmpd
31f3f69d3c
Update Grass7Utils.py 2018-11-27 13:33:15 +01:00
juanmpd
9b61eb8b71
Update Grass7Utils.py
Related to https://issues.qgis.org/issues/20632
This seems to solve this issue, but I don't really know if this change may be introducing some collateral effect.
It should be revised by someone with good knowledge of this piece of code.
2018-11-27 10:17:02 +01:00
nirvn
4d5edb2380 [processing] Use MultiPolygon as output wkb type for multi ring buffer (constant) 2018-11-26 17:17:52 +07:00
Nyall Dawson
64bd9e5a5e [processing] Fix traceback when modeller parameter invalid value is detected 2018-11-26 16:41:44 +10:00
Harrissou Sant-anna
72fdda7630 Deactivate help button for SAGA algorithms
to avoid user frustration because no help is provided in user manual (simply listing parameters and options already shown in GUI can't be called a help)
2018-11-26 11:59:10 +10:00
Luigi Pirelli
f94d08d330
Merge pull request #8531 from Gustry/saga
fix nodata parameter in saga
2018-11-23 13:43:37 +01:00
Nyall Dawson
2c425c7bf0 Fix unit test 2018-11-23 20:32:16 +11:00
Nyall Dawson
0e928e8191 [processing] Correctly set parent widgets for algorithm dialogs
to avoid dialogs immediately going out of scope and being garbage
collected
2018-11-23 20:32:16 +11:00
Nyall Dawson
2617fd56f7 Fix context going out of scope 2018-11-23 20:32:16 +11:00
Nyall Dawson
6fff62e668 Fix confusing override of accept method for non-dialog acceptance 2018-11-23 20:32:16 +11:00
Etienne Trimaille
c1f8db9b2e
fix nodata parameter in saga 2018-11-22 14:08:49 -04:00
Håvard Tveite
ce313755d7 GDAL extractreprojection missing from the raster menu
This was missed in #8378.
2018-11-18 08:59:24 +10:00
Luigi Pirelli
530cd5c12c
Merge pull request #8378 from havatv/patch-1
Reintroduce GDAL extract projection and update extractprojection.py to QGIS 3
2018-11-11 11:49:03 +01:00
Juergen E. Fischer
b39e5a0937 processing: add windows support to exportRasterLayersIntoDirectory (fixes #20146) 2018-11-11 03:15:21 +01:00
Juergen E. Fischer
3a4a3af1d6 osgeo4w:
* only use GRASS major version in executable names
* autodetect GRASS folder
2018-11-10 21:35:09 +01:00
Giovanni Manghi
3165382dcf run prepare-commit 2018-11-09 09:37:05 +00:00
Nyall Dawson
ba17b130f8 Move forceRHR to QgsGeometry, avoid duplicate code 2018-11-09 19:06:48 +10:00