655 Commits

Author SHA1 Message Date
Nyall Dawson
bef8d6e072 Update expected test results 2018-10-16 16:52:00 +10:00
Nyall Dawson
308d7136b4 [processing] More fixes to convertToCompatibleFormat, lots of unit
tests

Fixes #19938
2018-09-28 14:25:38 +10:00
Nyall Dawson
737ab3069a [processing][gdal] Correctly handle geopackage paths with layername argument
Fixes #19938
2018-09-28 14:25:38 +10:00
Harrissou Sant-anna
b478ee750c Fix "Array of offset lines" algorithm 2018-09-28 10:19:31 +10:00
Harrissou Sant-anna
9e5cc4b76b Fix array of translated features algorithms 2018-09-28 10:19:31 +10:00
Nyall Dawson
517b50c66d Capitalization 2018-09-25 22:01:39 +10: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
fd728c0854 Improve test coverage for k-nearest neighbor concave hull 2018-09-14 11:44:53 +02:00
Rudi von Staden
1a26d9401d Fix failing test for K-nearest concave hull group by field 2018-09-13 20:58:29 +02:00
Martin Dobias
1af35b294e Moved new snapping alg as another mode of "Snap geometries" processing alg 2018-09-13 16:24:37 +02:00
Martin Dobias
4a0669714b [FEATURE] Snap geometries algorithm
Makes sure that any two vertices of the vector layer are at least at distance given by the threshold value.
The algorithm moves nearby vertices to one location and adds vertices to segments that are passing around other
vertices within the threshold. It does not remove any vertices. Also, it does not modify geometries unless
needed (it does not snap coordinates to a grid).

This algorithm comes handy when doing vector overlay operations such as intersection, union or difference
to prevent possible topological errors caused by numerical errors if coordinates are very close to each other.

After running the algorithm some previously valid geometries may become invalid and therefore it may be useful
to run Fix geometries algorithm afterwards.
2018-09-13 11:46:29 +02:00
Rudi von Staden
4482c39fc8 Add tests for k-neighbour concave hull 2018-09-12 22:38:39 +02:00
Luigi Pirelli
580ecafa32
Merge pull request #7396 from luipir/rastercalculator_model_fix
[processing] Rebirth RasterCalculator in Modeler. Fixes #19302
2018-09-04 18:13:04 +02:00
nirvn
8398aae04b [needs-docs][processing] Use input layer data type for gdal algorithms
when appropriate:
- warp (i.e. reproject)
- translate (i.e. file format conversion)
- rearrange bands
- clip by extent/mask
2018-09-04 16:20:03 +07:00
Andrea Giudiceandrea
e56da0e58a
Add test for Join by location (equals)
Adds a test for "Join attributes by location" processing algorithm 'equals' predicate
2018-08-30 09:59:26 +02:00
Luigi Pirelli
6aa36166e4 adapted tests to new variables added in expressionContext 2018-08-28 17:06:10 +02:00
Luigi Pirelli
3b29e59885 small fix in parameter description removing spaces 2018-08-24 06:18:51 +10:00
Luigi Pirelli
819a82ad54 added SAGA watershed segmentation execution test 2018-08-24 06:18:51 +10:00
Nyall Dawson
d0a705fad0 [processing][gdal] Fix ogrinfo algorithm fails when path name has spaces
Fixes #19655
2018-08-21 14:28:42 +10:00
Nyall Dawson
0d200623b1 [FEATURE][processing] Add non-joinable output to Join by Location alg
Allows unjoinable features to be saved to a separate optional layer
2018-08-18 08:03:39 +10:00
Nyall Dawson
773371a143 [FEATURE][processing] Join by field value can export unmatched records,
and reports counts of matched/unmatched features

This gives an explicit warning to users when features were not matched,
and optionally allows them to save non-matching features to a layer.
2018-08-18 08:03:39 +10:00
Nyall Dawson
c6a91dab09 [FEATURE] Use native interpolate point method instead of GEOS method
Because:
- Exactly follows curves and doesn't require segmentizing input geometry
- Also interpolates z/m values if they are present in input geometry
- Is faster
2018-08-15 14:01:59 +10:00
Nyall Dawson
8365335fd3 [FEATURE][processing] Interpolate point on line algorithm
This algorithm creates a point geometry interpolated at a
set distance along line (or polygon boundary) geometries.
2018-08-15 14:01:59 +10:00
Nyall Dawson
7ef5631d6b [FEATURE][processing] Line substring algorithm
This algorithm returns the portion of a line (or curve) which falls
between the specified start and end distances (measured from the
beginning of the line).

Z and M values are linearly interpolated from existing values.
2018-08-15 14:01:59 +10:00
Nyall Dawson
7495ec276e [processing][grass] Fix r.stream.extract definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
e893aae190 [processing][grass] Fix definition of r.watershed, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
0c24fdb883 [processing][grass] Fix r.sun parameter definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
c50c615ecb Resurrect some processing grass tests 2018-08-09 12:32:27 +10:00
Nyall Dawson
08a8ea7b72 [processing][grass] Fix v.surf.bspline definition, add test 2018-08-09 12:32:27 +10:00
Nyall Dawson
526e590c8d [FEATURE][processing] Add "raster pixels to points" algorithm
Refactor the existing "raster pixels to polygons" algorithm and
create a new "pixels to points" algorithm, which creates a point
feature at the center of every pixel. nodata pixels are skipped.
2018-08-09 12:02:22 +10:00
Håvard Tveite
d2b71c307b [processing] Added isclose function to VoronoyPolygons.py to avoid numerical instability
Fixes #8002 - hopefully, and adds tests
2018-08-09 09:18:54 +10:00
Nyall Dawson
43d3870978 [processing][saga] Fix cubic spline definition, add unit test 2018-08-08 17:29:58 +10:00
havatv
4b1bc82ca1 Added a test for VoronoiPolygon.py that covers some new cases 2018-08-08 05:54:44 +10:00
Mathieu Pellerin
51b63e6b46
[vector file writer] use field type to save attribute values
(relying on attribute value type isn't reliable under certain
scenarios, including memory layers created through a processing
python algorithm)
2018-08-06 11:07:56 +07:00
Nyall Dawson
4acef1efbf [processing] Fix crash in extract by attribute when field name does not exist
Fixes #19531
2018-08-04 05:57:46 +10:00
Alexander Bruy
bbc33309a3
Merge pull request #7505 from alexbruy/network-analysis
[processing] port shortest path algs to C++
2018-08-01 13:40:31 +03:00
H Tveite
70b53fb484 Updated the expected/voronoi_buffer.gml file in testdata to reflect the new (and hopefully correct behaviour 2018-07-31 08:47:28 +10:00
Nyall Dawson
df05369dbf Hack is still required, but maybe using non-deprecated api will help?
Sometimes qt is great, sometimes I want to punch it in it's silly
little cute face
2018-07-31 05:12:59 +10:00
Alexander Bruy
72d13ac0f8 [processing] port shortest path (layer to point) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
d999923da9 [processing] port shortest path (point to layer) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
a6901edb9b [processing] port shortest path (point to point) alg to c++ 2018-07-30 15:15:03 +03:00
Nyall Dawson
f119453f42 Tweak algorithm names, strings 2018-07-30 12:11:17 +10:00
Nyall Dawson
837206892a Optimise drape algorithms, skip vertex iteration for geometries which don't intersect raster 2018-07-30 12:11:17 +10:00
Nyall Dawson
d5ce6dcb1d [FEATURE][processing] native drape features to z/m algorithms
Sets vertex z/m values to values sampled from a raster band.

Values can optionally be scaled using a (data definable) scale value.
2018-07-30 12:11:17 +10:00
Nyall Dawson
d1d6840a5f [processing][feature] Port 'offset lines' to c++, support dynamic offset parameter
Adds data defined support for the offset line distance parameter.
2018-07-27 13:23:50 +10:00
Nyall Dawson
76c84f14d7 [FEATURE][processing] "Create parallel lines" algorithm
This algorithm creates copies of line features in a layer, by
creating multiple parallel versions of each feature. Each copy is offset
by a preset distance.
2018-07-27 13:23:50 +10:00
Nyall Dawson
abe4532a2c [feature][processing] "Array of Offset Features" algorithm
This algorithm creates copies of features in a layer, by
creating multiple offset versions of the feature. Each copy is displaced
by a preset amount in the x/y/z/m axis.
2018-07-27 13:23:50 +10:00
Nyall Dawson
28c4a6cf59 [processing][grass] Fix v.net.* output types, add tests
Fixes #19186
2018-07-25 19:50:48 +10:00
Nyall Dawson
b10fa5e979 [processing][grass] Fix v.vect.stats output type, add test 2018-07-25 19:50:48 +10:00
Nyall Dawson
0c56d00c01 [processing][grass] Fix v.what.rast data type, add test 2018-07-25 19:50:48 +10:00