Nyall Dawson
cef9c4eaec
[FEATURE][processing] New algorithms "Extract Z values" and "Extract m values"
...
These algorithms allow users to convert z or m values present in feature
geometries to attributes in the layer. By default the z/m value from the
first vertex in the feature is extracted, but optionally statistics
can be calculated on ALL the z/m values from the geometry (e.g. calculating
mean/min/max/sum/etc of z values).
2019-01-04 05:01:40 +10:00
Nyall Dawson
5586352a13
[FEATURE][processing] New raster zonal stats algorithm
...
Like the vector zonal stats algorithm, but this one works with
the zones defined in another raster.
Iterates over the input rasters in blocks to be nice and
memory efficient.
From the algorithm help:
"This algorithm calculates statistics for a raster layer's
values, categorized by zones defined in another raster layer.
If the reference layer parameter is set to "Input layer",
then zones are determined by sampling the zone raster layer
value at the centroid of each pixel from the source raster
layer.
If the reference layer parameter is set to "Zones layer",
then the input raster layer will be sampled at the centroid
of each pixel from the zones raster layer.
If either the source raster layer or the zone raster layer
value is NODATA for a pixel, that pixel's value will be
skipped and not including in the calculated statistics."
2019-01-04 05:01:16 +10:00
Alessandro Pasotti
ecb6cde3aa
Pick up all layer entries references from the project context
...
This is the processing side of the duplicate layer
names bug, while the core part was already fixed,
the processing logic was extended to handle inputs
from models and full-path references.
Fixes #20601
2019-01-02 16:59:03 +01:00
Alexander Bruy
2f1efd8927
Merge pull request #8776 from alexbruy/gdal_tests
...
[processing] cover more GDAL algorithms with unittests
2019-01-02 08:17:19 +02:00
Juergen E. Fischer
196024ccba
typo fixes
2019-01-01 21:53:37 +01:00
Alexander Bruy
f332233f6d
remove obsolete tests
2019-01-01 19:28:09 +02:00
Alexander Bruy
6809d346ab
[processing] add unittest for gdal_polygonize algorithm
2019-01-01 19:26:14 +02:00
Alexander Bruy
f447745b5f
[processing] add unittest for gdal2xyz algorithm
2019-01-01 18:15:41 +02:00
Alexander Bruy
a5365e26eb
[processing] fix handling of the mask layer in the gdal_sieve algorithm
...
(fix #20713 )
2019-01-01 15:20:21 +02:00
Alexander Bruy
c64383702e
make advanced params optional to keep algorithm API stable
2018-12-31 12:34:12 +02:00
Alexander Bruy
3d33b9f1e2
[processing] expose resampling and format options in the gdaladdo
...
algorithm (fix #20432 )
These options actually were here but not added to the UI.
2018-12-31 12:20:31 +02:00
Alexander Bruy
84d155eaf0
Merge pull request #8759 from alexbruy/processing-interpolation
...
[processing][needs-docs] Add cell size parameter to native interpolation algorithms (fix #18556 , #20114 )
2018-12-30 15:55:05 +02:00
Alexander Bruy
acd4ceca5c
keep also old test for native interpolation algs
2018-12-30 09:48:45 +02:00
Alexander Bruy
1e1ed79e2d
[processing] set default value for band parameters in GDAL algs ( fix #20610 )
2018-12-30 09:18:23 +02:00
Alexander Bruy
e86ca50cc6
restore columns and rows parameters for the extremely rare case if
...
someone have used native interpolation algs in scripts/models
2018-12-30 08:15:26 +02:00
Alexander Bruy
09dbb8917d
update tests
2018-12-30 06:44:09 +02:00
Alexander Bruy
5813b96159
add cell size option to IDW and TIN interpolation algorithms
2018-12-30 06:44:09 +02:00
Alexander Bruy
357cf270ff
add value changed signal for custom interpolation parameter wrapper
...
move duplicated code into common file
2018-12-30 06:44:09 +02:00
Alexander Bruy
37f14f8b3f
add value changed signal for extent parameter widget wrapper
2018-12-30 06:44:09 +02:00
Harrissou Sant-anna
ea9b09f2dc
Use QGIS user manual for GDAL algorithms help files
...
because they are available for most of the algs and wouldn't be used otherwise. Also when someone hits algA help button, he should be given the algA help and not the main gdal utility doc.
2018-12-27 06:53:19 +10:00
Alessandro Pasotti
40fb2ce93d
Drop the ugly hack in favor of sourceFlags
2018-12-21 13:20:41 +01:00
Alessandro Pasotti
f4d7506e73
Processing in-place do not check validity when fixing geometries
...
Fixes #20812
2018-12-21 11:47:36 +01:00
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